mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 06:58:05 +02:00
wgl: Don't flush surface if it is NULL.
Just a quick fix to prevent segfaults with glean.
This commit is contained in:
parent
c03000b73e
commit
aa011836c2
1 changed files with 8 additions and 5 deletions
|
|
@ -225,11 +225,14 @@ stw_swap_buffers(
|
|||
*/
|
||||
st_notify_swapbuffers( fb->stfb );
|
||||
|
||||
st_get_framebuffer_surface( fb->stfb, ST_SURFACE_BACK_LEFT, &surf );
|
||||
|
||||
stw_dev->stw_winsys->flush_frontbuffer(stw_dev->screen,
|
||||
surf,
|
||||
hdc );
|
||||
if(st_get_framebuffer_surface( fb->stfb, ST_SURFACE_BACK_LEFT, &surf )) {
|
||||
stw_dev->stw_winsys->flush_frontbuffer(stw_dev->screen,
|
||||
surf,
|
||||
hdc );
|
||||
}
|
||||
else {
|
||||
/* FIXME: this shouldn't happen, but does on glean */
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue