mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2025-03-14 06:34:10 +00:00
Fix testVideo to check for viewDef->viewEntitys (i.e. 3D/2D) not console state
This commit is contained in:
parent
e7cd9bb2f7
commit
18755609de
1 changed files with 8 additions and 8 deletions
|
@ -2381,14 +2381,14 @@ void idRenderBackend::DBG_TestImage()
|
|||
GL_SelectTexture( 2 );
|
||||
imageCb->Bind();
|
||||
|
||||
// SRS - When console is active (i.e. 2D) skip sRGB to linear conversion
|
||||
if( console->Active() )
|
||||
// SRS - When rendering in 2D skip sRGB to linear conversion
|
||||
if( viewDef->viewEntitys )
|
||||
{
|
||||
renderProgManager.BindShader_Bink_sRGB();
|
||||
renderProgManager.BindShader_Bink();
|
||||
}
|
||||
else
|
||||
{
|
||||
renderProgManager.BindShader_Bink();
|
||||
renderProgManager.BindShader_Bink_sRGB();
|
||||
}
|
||||
}
|
||||
else
|
||||
|
@ -2396,14 +2396,14 @@ void idRenderBackend::DBG_TestImage()
|
|||
GL_SelectTexture( 0 );
|
||||
image->Bind();
|
||||
|
||||
// SRS - When console is active (i.e. 2D) skip sRGB to linear conversion
|
||||
if( console->Active() )
|
||||
// SRS - When rendering in 2D skip sRGB to linear conversion
|
||||
if( viewDef->viewEntitys )
|
||||
{
|
||||
renderProgManager.BindShader_TextureVertexColor_sRGB();
|
||||
renderProgManager.BindShader_TextureVertexColor();
|
||||
}
|
||||
else
|
||||
{
|
||||
renderProgManager.BindShader_TextureVertexColor();
|
||||
renderProgManager.BindShader_TextureVertexColor_sRGB();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue