diff options
author | Brian <brian@i915.localnet.net> | 2007-08-09 15:39:54 -0600 |
---|---|---|
committer | Brian <brian@i915.localnet.net> | 2007-08-09 15:39:54 -0600 |
commit | 3c07bbb1982da5629685f569285529f02b35e48c (patch) | |
tree | 99ecd8e3c83286722a65b9ecf6cdf0f7a0368225 /src/mesa/state_tracker | |
parent | 807ecbd344853288f4cadff95445d5677b28c93c (diff) |
assertions
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r-- | src/mesa/state_tracker/st_cb_fbo.c | 2 |
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 02bdb5aba5..15816bee9e 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; } |