- fixed: For cubemapped skies with one texture for all 4 sides the texture was never set before rendering.

This commit is contained in:
Christoph Oelckers 2014-12-19 16:35:34 +01:00
parent 4f00aa3957
commit 0bc2c0094a

View file

@ -398,6 +398,9 @@ static void RenderBox(FTextureID texno, FMaterial * gltex, float x_offset, bool
else
{
faces=1;
tex = FMaterial::ValidateTexture(sb->faces[0], false);
gl_RenderState.SetMaterial(tex, CLAMP_XY, 0, -1, false);
gl_RenderState.Apply();
ptr = GLRenderer->mVBO->GetBuffer();
ptr->Set(128.f, 128.f, -128.f, 0, 0);