Browse Source

Correction of misuses of xml element in OGLTextureCube

JSandusky 10 years ago
parent
commit
9d4f4f9bd9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/Urho3D/Graphics/OpenGL/OGLTextureCube.cpp

+ 1 - 1
Source/Urho3D/Graphics/OpenGL/OGLTextureCube.cpp

@@ -129,7 +129,7 @@ bool TextureCube::BeginLoad(Deserializer& source)
         int faceWidth, faceHeight;
         int faceWidth, faceHeight;
         loadImages_.Resize(MAX_CUBEMAP_FACES);
         loadImages_.Resize(MAX_CUBEMAP_FACES);
 
 
-        if (imageElem->IsCubemap())
+        if (image->IsCubemap())
         {
         {
             loadImages_[FACE_POSITIVE_X] = image;
             loadImages_[FACE_POSITIVE_X] = image;
             loadImages_[FACE_NEGATIVE_X] = loadImages_[FACE_POSITIVE_X]->GetNextSibling();
             loadImages_[FACE_NEGATIVE_X] = loadImages_[FACE_POSITIVE_X]->GetNextSibling();