Kaydet (Commit) f3c0085d authored tarafından Jan Holesovsky's avatar Jan Holesovsky

opengl: Off-by-one in getPixel.

Change-Id: I971d94c353adcdf70e0f251d6103b1e19042687c
üst 3637dc8a
......@@ -1529,7 +1529,7 @@ SalColor OpenGLSalGraphicsImpl::getPixel( long nX, long nY )
char pixel[3] = { 0, 0, 0 };
PreDraw();
nY = GetHeight() - nY;
nY = GetHeight() - nY - 1;
glReadPixels( nX, nY, 1, 1, GL_RGB, GL_UNSIGNED_BYTE, pixel);
PostDraw();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment