mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 06:50:11 +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,6 +413,9 @@ xlib_eglMakeCurrent(_EGLDriver *drv, EGLDisplay dpy,
|
||||||
(draw_surf ? draw_surf->Framebuffer : NULL),
|
(draw_surf ? draw_surf->Framebuffer : NULL),
|
||||||
(read_surf ? read_surf->Framebuffer : NULL));
|
(read_surf ? read_surf->Framebuffer : NULL));
|
||||||
|
|
||||||
|
if (draw_surf)
|
||||||
|
check_and_update_buffer_size(draw_surf);
|
||||||
|
if (read_surf && read_surf != draw_surf)
|
||||||
check_and_update_buffer_size(draw_surf);
|
check_and_update_buffer_size(draw_surf);
|
||||||
|
|
||||||
return EGL_TRUE;
|
return EGL_TRUE;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue