summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2008-04-29 12:54:52 -0600
committerBrian Paul <brian.paul@tungstengraphics.com>2008-04-29 12:54:52 -0600
commitdd9dc7df80d208b884b4c090e4408c9a12aa6095 (patch)
treedcdf28abec54468823c390fc06a58ddea3e63a7b /src/mesa/state_tracker
parentcc94863429d8a6cef8dbf861e78701a458d30f5a (diff)
downloadexternal_mesa3d-dd9dc7df80d208b884b4c090e4408c9a12aa6095.zip
external_mesa3d-dd9dc7df80d208b884b4c090e4408c9a12aa6095.tar.gz
external_mesa3d-dd9dc7df80d208b884b4c090e4408c9a12aa6095.tar.bz2
gallium: added some assertions to st_render_texture() to check surface format
Make sure we can really render to the texture surface given its format.
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r--src/mesa/state_tracker/st_cb_fbo.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_cb_fbo.c b/src/mesa/state_tracker/st_cb_fbo.c
index 69dde56..2d741d9 100644
--- a/src/mesa/state_tracker/st_cb_fbo.c
+++ b/src/mesa/state_tracker/st_cb_fbo.c
@@ -370,6 +370,8 @@ st_render_texture(GLcontext *ctx,
att->TextureLevel,
att->Zoffset);
assert(strb->surface);
+ assert(screen->is_format_supported(screen, strb->surface->format, PIPE_TEXTURE));
+ assert(screen->is_format_supported(screen, strb->surface->format, PIPE_SURFACE));
init_renderbuffer_bits(strb, pt->format);