mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2025-02-19 02:22:26 +00:00
Workaround to make in menu player model rendering working
This commit is contained in:
parent
2500ffe780
commit
3581ca75b1
1 changed files with 7 additions and 1 deletions
|
@ -243,7 +243,13 @@ 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
|
// HACK: abuse the GLSL preprocessor to turn GLSL 1.20 shaders into 1.30 ones
|
||||||
#ifdef __ANDROID__
|
#ifdef __ANDROID__
|
||||||
Q_strcat(dest, size, "#version 300 es\n");
|
Q_strcat(dest, size, "#version 300 es\n");
|
||||||
Q_strcat(dest, size, "precision highp float;\n");
|
|
||||||
|
// HACK: use in main menu medium float precision (to prevent issue with missing models textures)
|
||||||
|
if (Cvar_Get("r_uiFullScreen", "1", 0)->integer)
|
||||||
|
Q_strcat(dest, size, "precision mediump float;\n");
|
||||||
|
else
|
||||||
|
Q_strcat(dest, size, "precision highp float;\n");
|
||||||
|
|
||||||
if(shaderType == GL_VERTEX_SHADER)
|
if(shaderType == GL_VERTEX_SHADER)
|
||||||
{
|
{
|
||||||
Q_strcat(dest, size, "#define attribute in\n");
|
Q_strcat(dest, size, "#define attribute in\n");
|
||||||
|
|
Loading…
Reference in a new issue