Fixed warnings

Fixed warnings

diff --git a/src/engine/GPURenderer/r_image.cpp b/src/engine/GPURenderer/r_image.cpp
index f8ad325..7ef918e 100644
--- a/src/engine/GPURenderer/r_image.cpp
+++ b/src/engine/GPURenderer/r_image.cpp
@@ -2951,11 +2951,11 @@ static bool R_BuildDefaultImage( pointer format )
 R_CreateDefaultImage
 ==================
 */
-#define	DEFAULT_SIZE	128
+#define	DEFAULT_IMG_SIZE 128
 static void R_CreateDefaultImage( void )
 {
     sint x, flags = IMGFLAG_MIPMAP | IMGFLAG_PICMIP;
-    uchar8 data[DEFAULT_SIZE][DEFAULT_SIZE][4];
+    uchar8 data[DEFAULT_IMG_SIZE][DEFAULT_IMG_SIZE][4];
     
     if( r_defaultImage->string[0] )
     {
@@ -2996,7 +2996,7 @@ static void R_CreateDefaultImage( void )
                     data[x][DEFAULT_SIZE - 1][3] = 255;
     }
     
-    tr.defaultImage = R_CreateImage( "*default", ( uchar8* )data, DEFAULT_SIZE, DEFAULT_SIZE, IMGTYPE_COLORALPHA, IMGFLAG_MIPMAP, 0 );
+    tr.defaultImage = R_CreateImage( "*default", ( uchar8* )data, DEFAULT_IMG_SIZE, DEFAULT_IMG_SIZE, IMGTYPE_COLORALPHA, IMGFLAG_MIPMAP, 0 );
 }
 
 
diff --git a/src/engine/GPURenderer/r_sky.cpp b/src/engine/GPURenderer/r_sky.cpp
index 384847c..96470a5 100644
--- a/src/engine/GPURenderer/r_sky.cpp
+++ b/src/engine/GPURenderer/r_sky.cpp
@@ -739,7 +739,6 @@ void R_BuildCloudData( shaderCommands_t* input )
 ** R_InitSkyTexCoords
 ** Called when a sky shader is parsed
 */
-#define SQR( a ) ((a)*(a))
 void R_InitSkyTexCoords( float32 heightCloud )
 {
     sint i, s, t;

GitHub
sha: e24f3354

© GrangerHub. All rights reserved. Tremulous © Darklegion Development. Granger by err-overflow and MoP licensed CC-BY-SA-2.5