gallium: added a texture format sanity check/assertion in st_texture_create()

make sure the tex format is actually supported by the driver.
This commit is contained in:
Brian Paul
2008-02-28 11:17:30 -07:00
parent 476cc931f2
commit 01e53be2b8
+1
View File
@@ -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;