summaryrefslogtreecommitdiff
path: root/src/renderergl2/tr_bsp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/renderergl2/tr_bsp.c')
-rw-r--r--src/renderergl2/tr_bsp.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/src/renderergl2/tr_bsp.c b/src/renderergl2/tr_bsp.c
index f800e46e..d4a44633 100644
--- a/src/renderergl2/tr_bsp.c
+++ b/src/renderergl2/tr_bsp.c
@@ -287,13 +287,10 @@ static void R_LoadLightmaps( lump_t *l, lump_t *surfs ) {
tr.deluxemaps = ri.Hunk_Alloc( tr.numLightmaps * sizeof(image_t *), h_low );
}
- if (r_hdr->integer)
- {
- if (glRefConfig.textureFloat && glRefConfig.halfFloatPixel && r_floatLightmap->integer)
- textureInternalFormat = GL_RGBA16F_ARB;
- else
- textureInternalFormat = GL_RGBA8;
- }
+ if (glRefConfig.floatLightmap)
+ textureInternalFormat = GL_RGBA16F_ARB;
+ else
+ textureInternalFormat = GL_RGBA8;
if (r_mergeLightmaps->integer)
{
@@ -406,12 +403,12 @@ static void R_LoadLightmaps( lump_t *l, lump_t *surfs ) {
R_ColorShiftLightingFloats(color, color, 1.0f/255.0f);
- if (glRefConfig.textureFloat && glRefConfig.halfFloatPixel && r_floatLightmap->integer)
+ if (glRefConfig.floatLightmap)
ColorToRGBA16F(color, (unsigned short *)(&image[j*8]));
else
ColorToRGBM(color, &image[j*4]);
}
- else if (glRefConfig.textureFloat && glRefConfig.halfFloatPixel && r_floatLightmap->integer)
+ else if (glRefConfig.floatLightmap)
{
vec4_t color;