mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-23 10:30:23 +01:00
st/xlib: Add assert to check for null pointer dereference.
This commit is contained in:
parent
e3114d3f0f
commit
71e3abc014
1 changed files with 1 additions and 0 deletions
|
|
@ -1148,6 +1148,7 @@ void XMesaCopySubBuffer( XMesaBuffer b, int x, int y, int width, int height )
|
|||
if (!surf_front || !surf_back)
|
||||
return;
|
||||
|
||||
assert(pipe);
|
||||
pipe->surface_copy(pipe,
|
||||
surf_front, x, y, /* dest */
|
||||
surf_back, x, y, /* src */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue