소스 검색

Fix texture depth load

But color is still not right.
DricomDragon 4 년 전
부모
커밋
f086ebc4f5
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      arena/Texture.cpp

+ 1 - 1
arena/Texture.cpp

@@ -83,7 +83,7 @@ bool Texture::createTexture()
         if(imageInversee->format->Rmask == 0xff)
             m_format = GL_RGB;
         else
-            m_format = GL_RG;
+            m_format = GL_RGB; // must be BGR
     }
 
     // Détermination du format et du format interne pour les images à 4 composantes