diff --git a/gfx_es2/gl_state.cpp b/gfx_es2/gl_state.cpp index a1ed3c24fe..ab97de2dd5 100644 --- a/gfx_es2/gl_state.cpp +++ b/gfx_es2/gl_state.cpp @@ -324,7 +324,7 @@ void CheckGLExtensions() { }; for (int st = 0; st < 2; st++) { for (int p = 0; p < 6; p++) { - glGetShaderPrecisionFormat(shaderTypes[st], precisions[p], gl_extensions.range[st][p], &gl_extensions.precision[p]); + glGetShaderPrecisionFormat(shaderTypes[st], precisions[p], gl_extensions.range[st][p], &gl_extensions.precision[st][p]); } } } diff --git a/gfx_es2/gpu_features.h b/gfx_es2/gpu_features.h index 12f27a4d19..37faea8fde 100644 --- a/gfx_es2/gpu_features.h +++ b/gfx_es2/gpu_features.h @@ -76,7 +76,7 @@ struct GLExtensions { // Shader precision. Only fetched on ES for now. int range[2][6][2]; // [vs,fs][lowf,mediumf,highf,lowi,mediumi,highi][min,max] - int precision[6]; + int precision[2][6]; // [vs,fs][lowf...] // greater-or-equal than bool VersionGEThan(int major, int minor, int sub = 0);