Skip to content

Commit 22ffeb5

Browse files
committed
tr_backend: disable bloom when not blending in linear space
Disable bloom when not blending in linear space. Makes possible to enable bloom to use it when blending in linear space.
1 parent 62eb804 commit 22ffeb5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/engine/renderer/tr_backend.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1382,7 +1382,9 @@ void RB_RenderGlobalFog()
13821382
void RB_RenderBloom()
13831383
{
13841384
if ( ( backEnd.refdef.rdflags & ( RDF_NOWORLDMODEL | RDF_NOBLOOM ) )
1385-
|| !glConfig2.bloom || backEnd.viewParms.portalLevel > 0 ) {
1385+
|| !glConfig2.bloom || backEnd.viewParms.portalLevel > 0
1386+
|| !tr.worldLinearizeTexture )
1387+
{
13861388
return;
13871389
}
13881390

0 commit comments

Comments
 (0)