summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2008-02-28 11:17:30 -0700
committerBrian Paul <brian.paul@tungstengraphics.com>2008-02-28 11:36:54 -0700
commit01e53be2b80d5bcb48102f7f1be507b6a5a5832a (patch)
tree62402b10b732637601514bbf825e05a9a77a7d86 /src
parent476cc931f2bba69d4075b7c44985b145c3999af5 (diff)
gallium: added a texture format sanity check/assertion in st_texture_create()
make sure the tex format is actually supported by the driver.
Diffstat (limited to 'src')
-rw-r--r--src/mesa/state_tracker/st_texture.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_texture.c b/src/mesa/state_tracker/st_texture.c
index c2b0aa8a4a..cbc6f84998 100644
--- a/src/mesa/state_tracker/st_texture.c
+++ b/src/mesa/state_tracker/st_texture.c
@@ -86,6 +86,7 @@ st_texture_create(struct st_context *st,
_mesa_lookup_enum_by_nr(format), last_level);
assert(format);
+ assert(screen->is_format_supported(screen, format, PIPE_TEXTURE));
memset(&pt, 0, sizeof(pt));
pt.target = target;