From 60c8003dc9fb873937e1b9d5cbedfdf2e3b8bb8e Mon Sep 17 00:00:00 2001 From: Sergey Lipskiy Date: Wed, 26 Aug 2015 19:27:02 +0600 Subject: [PATCH] Remove GL ES extensions enablings from fragment shaders, because they cause crash on PowerVR GPUs. No regression found on Adreno and Tegra GPU. Need to be tested on other GPUs. --- src/OGL3X/Shaders_ogl3x.h | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/OGL3X/Shaders_ogl3x.h b/src/OGL3X/Shaders_ogl3x.h index 31335b11..e8c42fba 100644 --- a/src/OGL3X/Shaders_ogl3x.h +++ b/src/OGL3X/Shaders_ogl3x.h @@ -150,12 +150,6 @@ MAIN_SHADER_VERSION static const char* fragment_shader_header_common_variables = MAIN_SHADER_VERSION -"#ifdef GL_NV_fragdepth \n" -" #extension GL_NV_fragdepth : enable \n" -"#endif \n" -"#ifdef GL_OES_standard_derivatives \n" -" #extension GL_OES_standard_derivatives : enable \n" -"#endif \n" "uniform sampler2D uTex0; \n" "uniform sampler2D uTex1; \n" #ifdef GL_MULTISAMPLING_SUPPORT @@ -200,12 +194,6 @@ MAIN_SHADER_VERSION static const char* fragment_shader_header_common_variables_notex = MAIN_SHADER_VERSION -"#ifdef GL_NV_fragdepth \n" -" #extension GL_NV_fragdepth : enable \n" -"#endif \n" -"#ifdef GL_OES_standard_derivatives \n" -" #extension GL_OES_standard_derivatives : enable \n" -"#endif \n" "layout (std140) uniform ColorsBlock {\n" " lowp vec4 uFogColor; \n" " lowp vec4 uCenterColor; \n"