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);