projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
df37cde
)
st: fix incorrect target parameter to screen->is_format_supported()
author
Brian Paul
<brianp@vmware.com>
Mon, 18 May 2009 16:12:36 +0000
(10:12 -0600)
committer
Brian 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
patch
|
blob
|
history
diff --git
a/src/mesa/state_tracker/st_gen_mipmap.c
b/src/mesa/state_tracker/st_gen_mipmap.c
index e159b4c9db5ec340881d3326dbea13e926dc8fde..3a88908022a1ce981b477a5cc49110dfe991d7a9 100644
(file)
--- 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;
}