mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue