mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-10 22:51:57 +00:00
Hack to get MinGL to compile again
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3350 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
2158389bef
commit
4ff8acffb9
1 changed files with 5 additions and 1 deletions
|
@ -1128,6 +1128,7 @@ static void GL_DrawProgram_SkyChain(msurface_t *fa)
|
|||
qglVertexPointer(3, GL_FLOAT, 0, v->coord);
|
||||
qglEnableClientState(GL_VERTEX_ARRAY);
|
||||
|
||||
#ifndef MINIMAL
|
||||
if (fa->texinfo->texture->shader)
|
||||
{
|
||||
GL_MBind(mtexid0, fa->texinfo->texture->shader->passes[0].anim_frames[0]);
|
||||
|
@ -1137,11 +1138,14 @@ static void GL_DrawProgram_SkyChain(msurface_t *fa)
|
|||
}
|
||||
else
|
||||
{
|
||||
#endif
|
||||
GL_MBind(mtexid0, fa->texinfo->texture->tn.base);
|
||||
qglEnable(GL_TEXTURE_2D);
|
||||
GL_MBind(mtexid1, fa->texinfo->texture->tn.fullbright);
|
||||
qglEnable(GL_TEXTURE_2D);
|
||||
}
|
||||
#ifndef MINIMAL
|
||||
}
|
||||
#endif
|
||||
|
||||
for (; fa; fa = fa->texturechain)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue