From e697d7a2dd5177d53914a95ae7d8dc7141b90049 Mon Sep 17 00:00:00 2001 From: Ryan Houdek Date: Thu, 19 Dec 2013 17:30:39 -0600 Subject: [PATCH] [Android] Work around Qualcomm's broken garbage in their v53 drivers. This doesn't fix the issue, just a work around. This is the stupidest issue coming from Qualcomm. Now Dolphin Mobile won't crash immediately, but there are new SPS issues. --- Source/Core/VideoBackends/OGL/Src/ProgramShaderCache.cpp | 4 ++++ Source/Core/VideoCommon/Src/DriverDetails.cpp | 1 + Source/Core/VideoCommon/Src/DriverDetails.h | 6 ++++++ 3 files changed, 11 insertions(+) diff --git a/Source/Core/VideoBackends/OGL/Src/ProgramShaderCache.cpp b/Source/Core/VideoBackends/OGL/Src/ProgramShaderCache.cpp index e569f72295..d1782196fb 100644 --- a/Source/Core/VideoBackends/OGL/Src/ProgramShaderCache.cpp +++ b/Source/Core/VideoBackends/OGL/Src/ProgramShaderCache.cpp @@ -592,6 +592,9 @@ void ProgramShaderCache::CreateHeader ( void ) "#define frac fract\n" "#define lerp mix\n" + // Terrible hack, look at DriverDetails.h + "%s\n" + , v==GLSLES3 ? "#version 300 es" : v==GLSL_130 ? "#version 130" : v==GLSL_140 ? "#version 140" : "#version 150" , g_ActiveConfig.backend_info.bSupportsGLSLUBO && v