mirror of
https://github.com/TTimo/GtkRadiant.git
synced 2024-11-10 07:11:54 +00:00
Don't set shader flags on idTech2 faces.
QER_ surface flags should not be set on idTech2 faces.
This commit is contained in:
parent
c064a1c0a4
commit
91365cefe6
1 changed files with 7 additions and 1 deletions
|
@ -1488,7 +1488,13 @@ void SelectTexture( int mx, int my, bool bShift, bool bFitScale ){
|
|||
tex.scale[0] = g_PrefsDlg.m_fDefTextureScale;
|
||||
tex.scale[1] = g_PrefsDlg.m_fDefTextureScale;
|
||||
}
|
||||
// jdolan - idTech2 games use shaders purely for editing convenience (e.g. QER_TRANS)
|
||||
// these flags should not be set on idTech2 faces, as they collide with e.g. SURF_LIGHT
|
||||
if ( g_pGameDescription->idTech2 ) {
|
||||
tex.flags = 0;
|
||||
} else {
|
||||
tex.flags = pCurrentShader->getFlags();
|
||||
}
|
||||
// TTimo - shader code cleanup
|
||||
// texdef.name is the name of the shader, not the name of the actual texture file
|
||||
tex.SetName( pCurrentShader->getName() );
|
||||
|
|
Loading…
Reference in a new issue