Blank image in spy's screenshot
Posted: Mon Mar 28, 2011 4:51 pm
Hi,
We are trying to diagnose an issue with the spy not capturing any screenshots on an OpenGL rendered screen. We have a window in our application that we can enable/disable OpenGL drawing on and with OpenGL disabled we see the images in the screenshots, however with OpenGL enabled we see a black box.
When drawing a Polyline we do the following:
A - The OpenGL function making the drawing calls uses:
glVertex3i(GLint x, GLint y, GLint z)
B - The non-OpenGL function making the drawing calls uses (WinAPI):
::Polyline(__in HDC hdc, __in_ecount(cpt) CONST POINT *apt, __in int cpt)
Using A we see the lines drawn in the screenshot and using B we get an empty black box (the size of the image).
Our users typically use the OpenGL mode so we need to be testing in this mode and currently its impossible to test all of the items we draw on the screen.
We are trying to diagnose an issue with the spy not capturing any screenshots on an OpenGL rendered screen. We have a window in our application that we can enable/disable OpenGL drawing on and with OpenGL disabled we see the images in the screenshots, however with OpenGL enabled we see a black box.
When drawing a Polyline we do the following:
A - The OpenGL function making the drawing calls uses:
glVertex3i(GLint x, GLint y, GLint z)
B - The non-OpenGL function making the drawing calls uses (WinAPI):
::Polyline(__in HDC hdc, __in_ecount(cpt) CONST POINT *apt, __in int cpt)
Using A we see the lines drawn in the screenshot and using B we get an empty black box (the size of the image).
Our users typically use the OpenGL mode so we need to be testing in this mode and currently its impossible to test all of the items we draw on the screen.