From e813ddf251691299f490c6930045c07a62f6a9c2 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 24 May 2014 16:47:34 +0200 Subject: [PATCH] - fixed bad comparison. --- src/gl/textures/gl_material.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gl/textures/gl_material.cpp b/src/gl/textures/gl_material.cpp index 008e6e8cd..f27e1bed9 100644 --- a/src/gl/textures/gl_material.cpp +++ b/src/gl/textures/gl_material.cpp @@ -1009,7 +1009,7 @@ int FMaterial::GetAreas(FloatRect **pAreas) const void FMaterial::BindToFrameBuffer() { - if (mBaseLayer->gltexture == NULL) + if (mBaseLayer->gltexture[0] == NULL) { // must create the hardware texture first mBaseLayer->Bind(0, CM_DEFAULT, 0, 0, NULL, 0);