Skip to content
Browse files

Android/OGL: fix bounding box for OpenGL-ES

OpenGL-ES does not have glGetBufferSubData, so use glMapBufferRange instead
  • Loading branch information...
zackhow committed Jan 10, 2019
1 parent d3e1d2e commit 078fc74b546aa81a16cac307ede6ab8f02005749
Showing with 2 additions and 1 deletion.
  1. +2 −1 Source/Core/VideoBackends/OGL/BoundingBox.cpp
@@ -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) &&
// 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 078fc74

Please sign in to comment.
You can’t perform that action at this time.