File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -2569,13 +2569,13 @@ static void R_CreateCurrentRenderImage()
25692569
25702570static void R_CreateDepthRenderImage ()
25712571{
2572- ASSERT ( glConfig2.textureFloatAvailable );
2573-
25742572 if ( !glConfig2.realtimeLighting )
25752573 {
25762574 return ;
25772575 }
25782576
2577+ ASSERT ( glConfig2.textureFloatAvailable );
2578+
25792579 {
25802580 int width = glConfig.vidWidth ;
25812581 int height = glConfig.vidHeight ;
Original file line number Diff line number Diff line change @@ -52,6 +52,12 @@ static void EnableAvailableFeatures()
5252 glConfig2.realtimeLighting = false ;
5353 }
5454
55+ if ( !glConfig2.textureFloatAvailable )
56+ {
57+ Log::Warn ( " Tiled dynamic light renderer disabled because GL_ARB_texture_float is not available." );
58+ glConfig2.realtimeLighting = false ;
59+ }
60+
5561 if ( glConfig2.max3DTextureSize == 0 )
5662 {
5763 Log::Warn ( " Tiled dynamic light renderer disabled because of missing 3D texture support." );
You can’t perform that action at this time.
0 commit comments