GLSL precision increased

This commit is contained in:
Lubos 2022-03-20 10:12:01 +01:00
parent 950f36de85
commit 68ebf1b55f

View file

@ -243,7 +243,7 @@ static void GLSL_GetShaderHeader( GLenum shaderType, const GLchar *extra, char *
// HACK: abuse the GLSL preprocessor to turn GLSL 1.20 shaders into 1.30 ones
#ifdef __ANDROID__
Q_strcat(dest, size, "#version 300 es\n");
Q_strcat(dest, size, "precision mediump float;\n");
Q_strcat(dest, size, "precision highp float;\n");
if(shaderType == GL_VERTEX_SHADER)
{
Q_strcat(dest, size, "#define attribute in\n");