diff options
author | Vinson Lee <[email protected]> | 2010-09-02 16:03:32 -0700 |
---|---|---|
committer | Vinson Lee <[email protected]> | 2010-09-02 16:03:32 -0700 |
commit | c5dde53f4e42612518cd927bb58f08c0e22db17a (patch) | |
tree | 5ba8615acf5b4b4f286d00bf182f8d4b994671b8 /src/mesa/main/light.c | |
parent | f8d11b2e8ebaab2845080900ff4a2068f9a20b5f (diff) |
mesa: Fix printf-like warnings.
Diffstat (limited to 'src/mesa/main/light.c')
-rw-r--r-- | src/mesa/main/light.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/main/light.c b/src/mesa/main/light.c index 5b87b8c8acb..43ae28c25ab 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; } |