st: fix incorrect target parameter to screen->is_format_supported()
authorBrian Paul <brianp@vmware.com>
Mon, 18 May 2009 16:12:36 +0000 (10:12 -0600)
committerBrian Paul <brianp@vmware.com>
Mon, 18 May 2009 16:12:40 +0000 (10:12 -0600)
We were passing a GL texture target instead of a pipe_texture_target enum.

src/mesa/state_tracker/st_gen_mipmap.c

index e159b4c9db5ec340881d3326dbea13e926dc8fde..3a88908022a1ce981b477a5cc49110dfe991d7a9 100644 (file)
@@ -87,7 +87,7 @@ st_render_mipmap(struct st_context *st,
    assert(target != GL_TEXTURE_3D); /* not done yet */
 
    /* check if we can render in the texture's format */
-   if (!screen->is_format_supported(screen, pt->format, target,
+   if (!screen->is_format_supported(screen, pt->format, pt->target,
                                     PIPE_TEXTURE_USAGE_RENDER_TARGET, 0)) {
       return FALSE;
    }