Procházet zdrojové kódy

Fix unexisting open GL constants

DricomDragon před 4 roky
rodič
revize
633372d473
1 změnil soubory, kde provedl 2 přidání a 5 odebrání
  1. 2 5
      arena/Texture.cpp

+ 2 - 5
arena/Texture.cpp

@@ -83,7 +83,7 @@ bool Texture::createTexture()
         if(imageInversee->format->Rmask == 0xff)
             m_format = GL_RGB;
         else
-            m_format = GL_BGR;
+            m_format = GL_RG;
     }
 
     // Détermination du format et du format interne pour les images à 4 composantes
@@ -93,10 +93,7 @@ bool Texture::createTexture()
         m_formatInterne = GL_RGBA;
 
         // Format
-        if(imageInversee->format->Rmask == 0xff)
-            m_format = GL_RGBA;
-        else
-            m_format = GL_BGRA;
+		m_format = GL_RGBA;
     }
 
     // Dans les autres cas, on arrête le chargement