From 84844e1b24433bcec6f39bfa6a350b0572b38876 Mon Sep 17 00:00:00 2001 From: zhupengfei Date: Sat, 18 Apr 2020 20:35:00 +0800 Subject: [PATCH] gl_shader_util: Specify default precision for uimage2D Otherwise, this causes the application to crash when compiling any shader, on both devices I tested. --- src/video_core/renderer_opengl/gl_shader_util.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/video_core/renderer_opengl/gl_shader_util.h b/src/video_core/renderer_opengl/gl_shader_util.h index 8b1beb5c0e..fef6139d36 100644 --- a/src/video_core/renderer_opengl/gl_shader_util.h +++ b/src/video_core/renderer_opengl/gl_shader_util.h @@ -15,10 +15,12 @@ static constexpr char fragment_shader_precision_OES[] = R"( precision highp int; precision highp float; precision highp samplerBuffer; +precision highp uimage2D; #else precision mediump int; precision mediump float; precision mediump samplerBuffer; +precision mediump uimage2D; #endif // GL_FRAGMENT_PRECISION_HIGH )";