diff options
author | Fredrik Höglund <[email protected]> | 2015-05-16 19:43:39 +0200 |
---|---|---|
committer | Fredrik Höglund <[email protected]> | 2015-05-16 19:55:00 +0200 |
commit | 5a55f681f6208122cd4921b283cffd54ea335128 (patch) | |
tree | 9868cb60ecf250c4073ff82d99900ca382c55e51 /src/mesa | |
parent | d7081828cc62df7efbc23ca1037a42d69dab94a7 (diff) |
mesa: Check the lookup_framebuffer return value in NamedFramebufferRenderbuffer
Found by Coverity.
Reported-by: Ilia Mirkin <[email protected]>
Reviewed-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/main/fbobject.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/main/fbobject.c b/src/mesa/main/fbobject.c index 8db651ca2a1..1859c277293 100644 --- a/src/mesa/main/fbobject.c +++ b/src/mesa/main/fbobject.c @@ -3362,6 +3362,8 @@ _mesa_NamedFramebufferRenderbuffer(GLuint framebuffer, GLenum attachment, fb = _mesa_lookup_framebuffer_err(ctx, framebuffer, "glNamedFramebufferRenderbuffer"); + if (!fb) + return; if (renderbuffertarget != GL_RENDERBUFFER) { _mesa_error(ctx, GL_INVALID_ENUM, |