summaryrefslogtreecommitdiff
path: root/src/renderergl2/tr_glsl.c
diff options
context:
space:
mode:
authorSmileTheory <SmileTheory@gmail.com>2013-09-16 05:57:14 -0700
committerTim Angus <tim@ngus.net>2014-06-17 17:43:34 +0100
commitfc232c31d075091fea63c6dffa9ec69677b7068b (patch)
tree0cb4c91901ca6a287ab9a4adb44b382ff3656945 /src/renderergl2/tr_glsl.c
parent75fe4796280cc95fe6b96cc9c9df5d74fc478ffa (diff)
OpenGL2: Use RGBM instead of RGBE encoding for lightmaps.
Diffstat (limited to 'src/renderergl2/tr_glsl.c')
-rw-r--r--src/renderergl2/tr_glsl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/renderergl2/tr_glsl.c b/src/renderergl2/tr_glsl.c
index 38eb7f6d..a2707cd0 100644
--- a/src/renderergl2/tr_glsl.c
+++ b/src/renderergl2/tr_glsl.c
@@ -908,7 +908,7 @@ void GLSL_InitGPUShaders(void)
Q_strcat(extradefines, 1024, "#define USE_LIGHTMAP\n");
if (r_hdr->integer && !(glRefConfig.textureFloat && glRefConfig.halfFloatPixel))
- Q_strcat(extradefines, 1024, "#define RGBE_LIGHTMAP\n");
+ Q_strcat(extradefines, 1024, "#define RGBM_LIGHTMAP\n");
if (!GLSL_InitGPUShader(&tr.genericShader[i], "generic", attribs, qtrue, extradefines, qtrue, fallbackShader_generic_vp, fallbackShader_generic_fp))
{
@@ -1037,7 +1037,7 @@ void GLSL_InitGPUShaders(void)
}
if (r_hdr->integer && !(glRefConfig.textureFloat && glRefConfig.halfFloatPixel))
- Q_strcat(extradefines, 1024, "#define RGBE_LIGHTMAP\n");
+ Q_strcat(extradefines, 1024, "#define RGBM_LIGHTMAP\n");
if (i & LIGHTDEF_LIGHTTYPE_MASK)
{