From 02cacabff7c8301412faaaeccdbf67cd2bbc38c0 Mon Sep 17 00:00:00 2001 From: Nguyễn Gia Phong Date: Mon, 26 Jul 2021 12:00:06 +0700 Subject: Make g++ and zig c++ happy --- src/TGALoader.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/TGALoader.cpp') diff --git a/src/TGALoader.cpp b/src/TGALoader.cpp index ea26920..8862573 100644 --- a/src/TGALoader.cpp +++ b/src/TGALoader.cpp @@ -66,8 +66,7 @@ TGAImageRec* LoadTGA( char *filename ) } // Loop Through The Image Data - for( GLuint i = 0; i < int( imageSize ); i += bytesPerPixel ) - { + for (GLuint i = 0; i < imageSize; i += bytesPerPixel) { // Swaps The 1st And 3rd Bytes ('R'ed and 'B'lue) temp = texture->data[i]; // Temporarily Store The Value At Image Data 'i' texture->data[i] = texture->data[i + 2]; // Set The 1st Byte To The Value Of The 3rd Byte -- cgit 1.4.1