From: Brian Date: Thu, 9 Aug 2007 21:39:54 +0000 (-0600) Subject: assertions X-Git-Tag: 062012170305~17580^2~390^2~4446 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3c07bbb1982da5629685f569285529f02b35e48c;p=profile%2Fivi%2Fmesa.git assertions --- diff --git a/src/mesa/state_tracker/st_cb_fbo.c b/src/mesa/state_tracker/st_cb_fbo.c index 02bdb5a..15816be 100644 --- a/src/mesa/state_tracker/st_cb_fbo.c +++ b/src/mesa/state_tracker/st_cb_fbo.c @@ -131,6 +131,7 @@ st_renderbuffer_alloc_storage(GLcontext * ctx, struct gl_renderbuffer *rb, const struct pipe_format_info *info = pipe_get_format_info(pipeFormat); GLuint cpp, pitch; + assert(info); if (!info) return GL_FALSE; @@ -147,6 +148,7 @@ st_renderbuffer_alloc_storage(GLcontext * ctx, struct gl_renderbuffer *rb, if (!strb->surface) { strb->surface = pipe->surface_alloc(pipe, pipeFormat); + assert(strb->surface); if (!strb->surface) return GL_FALSE; }