Mesa (mesa_7_5_branch): st: fix incorrect target parameter to screen-> is_format_supported()

Brian Paul brianp at kemper.freedesktop.org
Mon May 18 16:13:56 UTC 2009


Module: Mesa
Branch: mesa_7_5_branch
Commit: 14e5bff97b20565637d468d97dba434ac4cd2ba1
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=14e5bff97b20565637d468d97dba434ac4cd2ba1

Author: Brian Paul <brianp at vmware.com>
Date:   Mon May 18 10:12:36 2009 -0600

st: fix incorrect target parameter to screen->is_format_supported()

We were passing a GL texture target instead of a pipe_texture_target enum.

---

 src/mesa/state_tracker/st_gen_mipmap.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/state_tracker/st_gen_mipmap.c b/src/mesa/state_tracker/st_gen_mipmap.c
index e159b4c..3a88908 100644
--- a/src/mesa/state_tracker/st_gen_mipmap.c
+++ b/src/mesa/state_tracker/st_gen_mipmap.c
@@ -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;
    }




More information about the mesa-commit mailing list