diff options
| author | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2021-07-26 12:00:06 +0700 |
|---|---|---|
| committer | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2021-07-26 12:00:06 +0700 |
| commit | 02cacabff7c8301412faaaeccdbf67cd2bbc38c0 (patch) | |
| tree | 18dcc35ce477dd93b9767697156b5c57f92f420b /src/TGALoader.cpp | |
| parent | 2f439764f5e115c37034cf9d4a8d7f39f696f30f (diff) | |
| download | blackshades-02cacabff7c8301412faaaeccdbf67cd2bbc38c0.tar.gz | |
Make g++ and zig c++ happy
Diffstat (limited to 'src/TGALoader.cpp')
| -rw-r--r-- | src/TGALoader.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
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 |
