From 906cbe5ddfccb9e933861c1b51429c2737734985 Mon Sep 17 00:00:00 2001 From: degasus Date: Wed, 21 Aug 2013 11:48:39 +0200 Subject: [PATCH] ogl: enable glsl extension ARB_shader_image_load_store for early-z --- Source/Plugins/Plugin_VideoOGL/Src/ProgramShaderCache.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Source/Plugins/Plugin_VideoOGL/Src/ProgramShaderCache.cpp b/Source/Plugins/Plugin_VideoOGL/Src/ProgramShaderCache.cpp index 51c274ad26..d1684f0df5 100644 --- a/Source/Plugins/Plugin_VideoOGL/Src/ProgramShaderCache.cpp +++ b/Source/Plugins/Plugin_VideoOGL/Src/ProgramShaderCache.cpp @@ -501,6 +501,7 @@ void ProgramShaderCache::CreateHeader ( void ) "#version %s\n" "%s\n" // default precision "%s\n" // ubo + "%s\n" // early-z "\n"// A few required defines and ones that will make our lives a lot easier "#define ATTRIN %s\n" @@ -533,16 +534,20 @@ void ProgramShaderCache::CreateHeader ( void ) , v==GLSLES3 ? "300 es" : v==GLSL_120 ? "120" : v==GLSL_130 ? "130" : v==GLSL_140 ? "140" : "150" , v==GLSLES3 ? "precision highp float;" : "" , g_ActiveConfig.backend_info.bSupportsGLSLUBO && v