Skip to content

Commit 0552293

Browse files
committed
Fix rgbGen linearization
Regression in bd91b46
1 parent d07e667 commit 0552293

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/engine/renderer/tr_shader.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1486,7 +1486,7 @@ static bool LoadMap( shaderStage_t *stage, const char *buffer, stageType_t type,
14861486
if ( ! ( shader.registerFlags & RSF_2D ) )
14871487
{
14881488
stage->convertColorFromSRGB = stage->colorspaceBits & LINEAR_RGBGEN ?
1489-
convertColorFromSRGB_NOP : stage->convertColorFromSRGB;
1489+
convertColorFromSRGB_NOP : tr.convertColorFromSRGB;
14901490

14911491
switch ( type )
14921492
{

0 commit comments

Comments
 (0)