Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Widgets - General questions or Mixed problems » Taking snapshot of GLCtrl no longer works
Taking snapshot of GLCtrl no longer works [message #52184] Mon, 05 August 2019 12:20 Go to previous message
Tom1
Messages: 1212
Registered: March 2007
Senior Contributor
Hi,

I have not worked with GLCtrl for a while. Now as I tried to recompile my old program, I found out that my code taking snapshot of the GLCtrl contents no longer works. It just returns a black image:

		Size sz=GetSize();
		ImageBuffer ib(sz);
		glReadPixels(0,0,sz.cx,sz.cy,GL_BGRA_EXT,GL_UNSIGNED_BYTE,(GLvoid*)(RGBA*)ib);


Any suggestions how to proceed?

Best regards,

Tom
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Deleting Ctrl from within itself
Next Topic: SetRect doesn't work correctly on GTK
Goto Forum:
  


Current Time: Fri Apr 19 18:24:25 CEST 2024

Total time taken to generate the page: 0.03460 seconds