diff options
Diffstat (limited to 'src/rend2/tr_image.c')
-rw-r--r-- | src/rend2/tr_image.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rend2/tr_image.c b/src/rend2/tr_image.c index 13dda827..8a1f574f 100644 --- a/src/rend2/tr_image.c +++ b/src/rend2/tr_image.c @@ -2959,9 +2959,9 @@ void R_CreateBuiltinImages( void ) { hdrFormat = GL_RGB16F_ARB; tr.renderImage = R_CreateImage("_render", NULL, width, height, IMGTYPE_COLORALPHA, IMGFLAG_NO_COMPRESSION | IMGFLAG_CLAMPTOEDGE, hdrFormat); -#ifdef REACTION - tr.godRaysImage = R_CreateImage("*godRays", NULL, width, height, IMGTYPE_COLORALPHA, IMGFLAG_NO_COMPRESSION | IMGFLAG_CLAMPTOEDGE, GL_RGBA8); -#endif + + if (r_drawSunRays->integer) + tr.sunRaysImage = R_CreateImage("*sunRays", NULL, width, height, IMGTYPE_COLORALPHA, IMGFLAG_NO_COMPRESSION | IMGFLAG_CLAMPTOEDGE, GL_RGBA8); if (r_softOverbright->integer) { |