From 3bbaf6508a069bd985a3c7c821d9956f6f2e6ae7 Mon Sep 17 00:00:00 2001 From: divverent Date: Wed, 27 Apr 2011 09:19:10 +0000 Subject: [PATCH] in glsl130, add "precision mediump float" git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11078 d7cf8633-e32d-0410-b094-e92efae38249 --- shader_glsl.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/shader_glsl.h b/shader_glsl.h index 44d84da3..f5fc5510 100644 --- a/shader_glsl.h +++ b/shader_glsl.h @@ -2,14 +2,17 @@ "// written by Forest 'LordHavoc' Hale\n" "// shadowmapping enhancements by Lee 'eihrul' Salzman\n" "\n" -"// GL ES shaders use precision modifiers, standard GL does not\n" +"// GL ES and GLSL130 shaders use precision modifiers, standard GL does not\n" "#ifndef GL_ES\n" +"#ifndef GLSL130\n" "#define lowp\n" "#define mediump\n" "#define highp\n" "#endif\n" +"#endif\n" "\n" "#ifdef GLSL130\n" +"precision mediump float;\n" "# ifdef VERTEX_SHADER\n" "# define dp_varying out\n" "# define dp_attribute in\n" -- 2.39.2