gocca
11-19-2009, 07:00 PM
Hi!
I´m working on a small application that takes screenshots of an Opengl game (Counter Strike), but i have run into some problems when running my program on Vista.
The problem i that my program returns a pitch-black image when the game is running in full-screen, everything works fine when it is run in Window-mode.
I have done some research and found out that GDI operations on OpenGL windows do not work under Vista. http://www.opengl.org/pipeline/article/vol003_7/
What other possibilities are there to make this work under Vista. Is it posible to make som kind of Opengl hook?
Is it possible to "hijack" the glReadPixels from the Game??
I´m open to all suggestions, and grateful for all of your answers.
I´m working on a small application that takes screenshots of an Opengl game (Counter Strike), but i have run into some problems when running my program on Vista.
The problem i that my program returns a pitch-black image when the game is running in full-screen, everything works fine when it is run in Window-mode.
I have done some research and found out that GDI operations on OpenGL windows do not work under Vista. http://www.opengl.org/pipeline/article/vol003_7/
What other possibilities are there to make this work under Vista. Is it posible to make som kind of Opengl hook?
Is it possible to "hijack" the glReadPixels from the Game??
I´m open to all suggestions, and grateful for all of your answers.