mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 02:30:12 +01:00
egl: added null ptr checks
This commit is contained in:
parent
fbd6e86b8f
commit
a87e717d0d
1 changed files with 4 additions and 1 deletions
|
|
@ -413,7 +413,10 @@ xlib_eglMakeCurrent(_EGLDriver *drv, EGLDisplay dpy,
|
|||
(draw_surf ? draw_surf->Framebuffer : NULL),
|
||||
(read_surf ? read_surf->Framebuffer : NULL));
|
||||
|
||||
check_and_update_buffer_size(draw_surf);
|
||||
if (draw_surf)
|
||||
check_and_update_buffer_size(draw_surf);
|
||||
if (read_surf && read_surf != draw_surf)
|
||||
check_and_update_buffer_size(draw_surf);
|
||||
|
||||
return EGL_TRUE;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue