screenGrabber: Pass correct coordinates to glReadPixels
Pass x and y to glReadPixels rather then always 0, 0. https://bugzilla.gnome.org/show_bug.cgi?id=669366
This commit is contained in:
parent
b5b5759829
commit
87559414a3
@ -165,7 +165,7 @@ shell_screen_grabber_grab (ShellScreenGrabber *grabber,
|
||||
pf_glBindBufferARB (GL_PIXEL_PACK_BUFFER_ARB, grabber->pixel_buffer);
|
||||
}
|
||||
|
||||
glReadPixels (0, 0, width, height, GL_BGRA, GL_UNSIGNED_BYTE, 0);
|
||||
glReadPixels (x, y, width, height, GL_BGRA, GL_UNSIGNED_BYTE, 0);
|
||||
|
||||
mapped_data = pf_glMapBufferARB (GL_PIXEL_PACK_BUFFER_ARB, GL_READ_ONLY_ARB);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user