mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
assertions
This commit is contained in:
parent
807ecbd344
commit
3c07bbb198
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue