Skip to content

Commit

Permalink
Disable GLPixelRequest and use glReadPixels() instead
Browse files Browse the repository at this point in the history
glFenceSync() causes crashes on Intel i965, so disable GLPixelRequest
for now, it's not yet properly used anyway.

See #1385
  • Loading branch information
Grumbel committed May 6, 2020
1 parent b7372d1 commit 0141dff
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/video/gl/gl_painter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,11 @@ GLPainter::get_pixel(const GetPixelRequest& request) const
x += static_cast<float>(rect.left);
y += static_cast<float>(rect.top);

#ifndef USE_OPENGLES2
#if 0
// #ifndef USE_OPENGLES2
//
// FIXME: glFenceSync() causes crashes on Intel I965, so disable
// GLPixelRequest for now, it's not yet properly used anyway.
GLPixelRequest pixel_request(1, 1);
pixel_request.request(static_cast<int>(x), static_cast<int>(y));

Expand Down

0 comments on commit 0141dff

Please sign in to comment.