mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-12-01 16:41:22 +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);
|
activeShader = GLRenderer->mShaderManager->BindEffect(mSpecialEffect);
|
||||||
}
|
}
|
||||||
FShader *shd = GLRenderer->mShaderManager->Get(mTextureEnabled? mEffectState : 4);
|
else
|
||||||
|
|
||||||
if (shd != NULL)
|
|
||||||
{
|
{
|
||||||
activeShader = shd;
|
activeShader = GLRenderer->mShaderManager->Get(mTextureEnabled ? mEffectState : 4);
|
||||||
shd->Bind();
|
activeShader->Bind();
|
||||||
}
|
}
|
||||||
|
|
||||||
int fogset = 0;
|
int fogset = 0;
|
||||||
|
|
Loading…
Reference in a new issue