summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/light.c
diff options
context:
space:
mode:
authorVinson Lee <vlee@vmware.com>2010-09-02 16:03:32 -0700
committerVinson Lee <vlee@vmware.com>2010-09-02 16:03:32 -0700
commitc5dde53f4e42612518cd927bb58f08c0e22db17a (patch)
tree5ba8615acf5b4b4f286d00bf182f8d4b994671b8 /src/mesa/main/light.c
parentf8d11b2e8ebaab2845080900ff4a2068f9a20b5f (diff)
downloadexternal_mesa3d-c5dde53f4e42612518cd927bb58f08c0e22db17a.zip
external_mesa3d-c5dde53f4e42612518cd927bb58f08c0e22db17a.tar.gz
external_mesa3d-c5dde53f4e42612518cd927bb58f08c0e22db17a.tar.bz2
mesa: Fix printf-like warnings.
Diffstat (limited to 'src/mesa/main/light.c')
-rw-r--r--src/mesa/main/light.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/main/light.c b/src/mesa/main/light.c
index 5b87b8c..43ae28c 100644
--- a/src/mesa/main/light.c
+++ b/src/mesa/main/light.c
@@ -599,7 +599,7 @@ _mesa_material_bitmask( GLcontext *ctx, GLenum face, GLenum pname,
bitmask |= MAT_BIT_FRONT_INDEXES | MAT_BIT_BACK_INDEXES;
break;
default:
- _mesa_error( ctx, GL_INVALID_ENUM, where );
+ _mesa_error( ctx, GL_INVALID_ENUM, "%s", where );
return 0;
}
@@ -610,12 +610,12 @@ _mesa_material_bitmask( GLcontext *ctx, GLenum face, GLenum pname,
bitmask &= BACK_MATERIAL_BITS;
}
else if (face != GL_FRONT_AND_BACK) {
- _mesa_error( ctx, GL_INVALID_ENUM, where );
+ _mesa_error( ctx, GL_INVALID_ENUM, "%s", where );
return 0;
}
if (bitmask & ~legal) {
- _mesa_error( ctx, GL_INVALID_ENUM, where );
+ _mesa_error( ctx, GL_INVALID_ENUM, "%s", where );
return 0;
}