summary refs log tree commit diff
path: root/src/TGALoader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/TGALoader.cpp')
-rw-r--r--src/TGALoader.cpp3
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