From 078fc74b546aa81a16cac307ede6ab8f02005749 Mon Sep 17 00:00:00 2001 From: zackhow Date: Wed, 9 Jan 2019 21:07:44 -0500 Subject: [PATCH] Android/OGL: fix bounding box for OpenGL-ES OpenGL-ES does not have glGetBufferSubData, so use glMapBufferRange instead --- Source/Core/VideoBackends/OGL/BoundingBox.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(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.