]> git.lizzy.rs Git - shadowclad.git/blobdiff - tga.c
Rework asset import, add texture import
[shadowclad.git] / tga.c
diff --git a/tga.c b/tga.c
index 7e13d905e9dc9d33247ee193ccadfc7b68b86d20..551039cb3555a3b6155bb70c262d6e7e4e308df5 100644 (file)
--- a/tga.c
+++ b/tga.c
@@ -21,11 +21,11 @@ TgaImage* readTga(const char* path) {
        
        switch (header.imageBpp) {
                case 32:
-                       imageFormat = GL_BGRA_EXT;
+                       imageFormat = GL_BGRA;
                        imageComponents = GL_RGBA8;
                        break;
                case 24:
-                       imageFormat = GL_BGR_EXT;
+                       imageFormat = GL_BGR;
                        imageComponents = GL_RGB8;
                        break;
                case 8: