st/mesa: fix incorrect debug output
authorBrian Paul <brianp@vmware.com>
Tue, 13 Sep 2011 15:30:31 +0000 (09:30 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 13 Sep 2011 15:30:33 +0000 (09:30 -0600)
format and type are not GL enums here.

src/mesa/state_tracker/st_texture.c

index 232c286c1d13f0774e27947e57c5a74dea51dfda..c5dc7dcc484bf7a7918db6e0121f7866b964cc59 100644 (file)
@@ -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,