gl_shader_util: Specify default precision for uimage2D

Otherwise, this causes the application to crash when compiling any shader, on both devices I tested.
This commit is contained in:
zhupengfei 2020-04-18 20:35:00 +08:00 committed by xperia64
parent 246ece6ac7
commit 8b621ec2da

View File

@ -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
)";