Explorar o código

Fix texture depth load

But color is still not right.
DricomDragon %!s(int64=4) %!d(string=hai) anos
pai
achega
f086ebc4f5
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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