Parcourir la source

Fix unexisting GL constants

DricomDragon il y a 4 ans
Parent
commit
dc998266a6
1 fichiers modifiés avec 2 ajouts et 10 suppressions
  1. 2 10
      caban/Texture.cpp

+ 2 - 10
caban/Texture.cpp

@@ -100,11 +100,7 @@ bool Texture::charger()
 
         // Format
 
-        if(imageInversee->format->Rmask == 0xff)
-            format = GL_RGB;
-
-        else
-            format = GL_BGR;
+		format = GL_RGB;
     }
 
 
@@ -119,11 +115,7 @@ bool Texture::charger()
 
         // Format
 
-        if(imageInversee->format->Rmask == 0xff)
-            format = GL_RGBA;
-
-        else
-            format = GL_BGRA;
+		format = GL_RGBA;
     }