U++ framework
Do not panic. Ask here before giving up.

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: 1319
Registered: March 2007
Ultimate 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 Jul 03 15:13:59 GMT+2 2026

Total time taken to generate the page: 0.00726 seconds