Vista + Screenshot

Hi there,

under Windows XP I was able to make screenshots of my
fullscreen OpenGL applications by simply hitting the
“print” key (“Druck” in German) on my keyboard.

Now I have Windows Vista (64bit) and always get a blank screen
when doing it the same way. Why does this not work anymore? :frowning:

Is there a way to make this possible again? Or is there a tool
that still can make screenshots of OpenGL programs under vista?

Thanks for help! :slight_smile:

Can’t you just make the screenshot yourself?
Just render your scene to the backbuffer, call
glReadPixels(0, 0, width, height, GL_BGRA, GL_UNSIGNED_BYTE, pdata);
and save the pixels. Use DevIL to save it to a file.

That would work of course.

So is it a known issue under Vista?

Yes, Vista issue.
The PrintScreen functionality can only read some parts of the composited desktop screen. Think about digital rights management as well.
If you’re running in fullscreen 3D HW mode there is no compositing going on and PrintScreen grabs from another 2D surface. => No screenshot from the 3D image but from undefined 2D data.

Read the two newsletters about GDI changes compared to XP:


This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.