ソースを参照

Fix unexisting GL constants

DricomDragon 4 年 前
コミット
dc998266a6
1 ファイル変更2 行追加10 行削除
  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;
     }