diff options
| author | Connor McLaughlin <stenzek@gmail.com> | 2019-01-10 12:17:33 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-01-10 12:17:33 +1000 |
| commit | c2afcb0f6bba761c248031ee715a1db3fd4dbe05 (patch) | |
| tree | 1e84efa9d632c63161b074ad8c86020bc90899e5 /Source/Core/VideoBackends/OGL/BoundingBox.cpp | |
| parent | d3e1d2ea000412ee40251656c3efa4375e91f092 (diff) | |
| parent | 078fc74b546aa81a16cac307ede6ab8f02005749 (diff) | |
Merge pull request #7692 from zackhow/bboxadroid
Android/OGL: fix bounding box for OpenGL-ES
Diffstat (limited to 'Source/Core/VideoBackends/OGL/BoundingBox.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/OGL/BoundingBox.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Core/VideoBackends/OGL/BoundingBox.cpp b/Source/Core/VideoBackends/OGL/BoundingBox.cpp index ebf8433d92..c50f831524 100644 --- a/Source/Core/VideoBackends/OGL/BoundingBox.cpp +++ b/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) && + !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. |
