mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-23 18:20:30 +01:00
mesa: Check the lookup_framebuffer return value in NamedFramebufferRenderbuffer
Found by Coverity. Reported-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
This commit is contained in:
parent
d7081828cc
commit
5a55f681f6
1 changed files with 2 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue