added some parenthesis to silence warnings
authorBrian Paul <brian.paul@tungstengraphics.com>
Tue, 30 Aug 2005 23:50:23 +0000 (23:50 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Tue, 30 Aug 2005 23:50:23 +0000 (23:50 +0000)
src/mesa/drivers/dri/i810/i810tex.c

index a86d434db02e0b05e5de5c323f700676ef70edfd..f657abe6711e9d8e4e0294b69b4eb56d65076ff7 100644 (file)
@@ -455,8 +455,8 @@ i810ChooseTextureFormat( GLcontext *ctx, GLint internalFormat,
    case GL_RGBA12:
    case GL_RGBA16:
    case GL_COMPRESSED_RGBA:
-      if ( (format == GL_BGRA) && (type == GL_UNSIGNED_SHORT_1_5_5_5_REV)
-          || (format == GL_RGBA) && (type == GL_UNSIGNED_SHORT_5_5_5_1)
+      if ( ((format == GL_BGRA) && (type == GL_UNSIGNED_SHORT_1_5_5_5_REV))
+          || ((format == GL_RGBA) && (type == GL_UNSIGNED_SHORT_5_5_5_1))
           || (internalFormat == GL_RGB5_A1) ) {
         return &_mesa_texformat_argb1555;
       }