summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2011-09-13 09:30:31 -0600
committerBrian Paul <[email protected]>2011-09-13 09:30:33 -0600
commitb06613c6cc029c3ff200430b0706b5229c4508bd (patch)
treed3ef0cbe1b9d18f2932af6ad501b6d1f3b23de80 /src
parent0ebf83b7318784e495b9cc56631f3961bb705827 (diff)
st/mesa: fix incorrect debug output
format and type are not GL enums here.
Diffstat (limited to 'src')
-rw-r--r--src/mesa/state_tracker/st_texture.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mesa/state_tracker/st_texture.c b/src/mesa/state_tracker/st_texture.c
index 232c286c1d1..c5dc7dcc484 100644
--- a/src/mesa/state_tracker/st_texture.c
+++ b/src/mesa/state_tracker/st_texture.c
@@ -72,9 +72,8 @@ st_texture_create(struct st_context *st,
if (target == PIPE_TEXTURE_CUBE)
assert(layers == 6);
- DBG("%s target %s format %s last_level %d\n", __FUNCTION__,
- _mesa_lookup_enum_by_nr(target),
- _mesa_lookup_enum_by_nr(format), last_level);
+ DBG("%s target %d format %s last_level %d\n", __FUNCTION__,
+ (int) target, util_format_name(format), last_level);
assert(format);
assert(screen->is_format_supported(screen, format, target, 0,