mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-11 23:32:02 +00:00
- fixed problem with selecting special shaders.
This commit is contained in:
parent
f5ea31b518
commit
0cf37f2e51
1 changed files with 3 additions and 5 deletions
|
@ -129,12 +129,10 @@ bool FRenderState::ApplyShader()
|
|||
{
|
||||
activeShader = GLRenderer->mShaderManager->BindEffect(mSpecialEffect);
|
||||
}
|
||||
FShader *shd = GLRenderer->mShaderManager->Get(mTextureEnabled? mEffectState : 4);
|
||||
|
||||
if (shd != NULL)
|
||||
else
|
||||
{
|
||||
activeShader = shd;
|
||||
shd->Bind();
|
||||
activeShader = GLRenderer->mShaderManager->Get(mTextureEnabled ? mEffectState : 4);
|
||||
activeShader->Bind();
|
||||
}
|
||||
|
||||
int fogset = 0;
|
||||
|
|
Loading…
Reference in a new issue