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

We were passing a GL texture target instead of a pipe_texture_target enum.
This commit is contained in:
Brian Paul 2009-05-18 10:12:36 -06:00
parent df37cde309
commit 14e5bff97b

View 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;
}