소스 검색

Correction of misuses of xml element in OGLTextureCube

JSandusky 10 년 전
부모
커밋
9d4f4f9bd9
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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;
         loadImages_.Resize(MAX_CUBEMAP_FACES);
 
-        if (imageElem->IsCubemap())
+        if (image->IsCubemap())
         {
             loadImages_[FACE_POSITIVE_X] = image;
             loadImages_[FACE_NEGATIVE_X] = loadImages_[FACE_POSITIVE_X]->GetNextSibling();