mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2024-11-28 06:32:29 +00:00
- fixed bad constant and potential use of uninitialized variable.
This commit is contained in:
parent
3d24f58bf0
commit
c9c93a58a2
2 changed files with 3 additions and 3 deletions
|
@ -344,12 +344,12 @@ inline void GLFlat::PutFlat(bool fog)
|
|||
{
|
||||
Colormap.Clear();
|
||||
}
|
||||
if (renderstyle!=STYLE_Translucent || alpha < 1.f - FLT_EPSILON || fog)
|
||||
if (renderstyle!=STYLE_Translucent || alpha < 1.f - FLT_EPSILON || fog || gltexture == NULL)
|
||||
{
|
||||
// translucent 3D floors go into the regular translucent list, translucent portals go into the translucent border list.
|
||||
list = (renderflags&SSRF_RENDER3DPLANES) ? GLDL_TRANSLUCENT : GLDL_TRANSLUCENTBORDER;
|
||||
}
|
||||
else if (gltexture != NULL)
|
||||
else
|
||||
{
|
||||
bool masked = gltexture->isMasked() && ((renderflags&SSRF_RENDER3DPLANES) || stack);
|
||||
list = masked ? GLDL_MASKED : GLDL_PLAIN;
|
||||
|
|
|
@ -121,7 +121,7 @@ void OpenGLFrameBuffer::InitializeState()
|
|||
|
||||
if (first)
|
||||
{
|
||||
glewExperimental=TRUE;
|
||||
glewExperimental=true;
|
||||
glewInit();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue