Skip to content
Permalink
Browse files
Merge pull request #7692 from zackhow/bboxadroid
Android/OGL: fix bounding box for OpenGL-ES
  • Loading branch information
stenzek committed Jan 10, 2019
2 parents d3e1d2e + 078fc74 commit c2afcb0
Showing 1 changed file with 2 additions and 1 deletion.
@@ -99,7 +99,8 @@ int BoundingBox::Get(int index)
{
int data = 0;
glBindBuffer(GL_SHADER_STORAGE_BUFFER, s_bbox_buffer_id);
if (!DriverDetails::HasBug(DriverDetails::BUG_SLOW_GETBUFFERSUBDATA))
if (!DriverDetails::HasBug(DriverDetails::BUG_SLOW_GETBUFFERSUBDATA) &&
!static_cast<Renderer*>(g_renderer.get())->IsGLES())
{
// Using glMapBufferRange to read back the contents of the SSBO is extremely slow
// on nVidia drivers. This is more noticeable at higher internal resolutions.

0 comments on commit c2afcb0

Please sign in to comment.