st/xlib: Add assert to check for null pointer dereference.

This commit is contained in:
Vinson Lee 2010-02-20 16:23:44 -08:00
parent e3114d3f0f
commit 71e3abc014
1 changed files with 1 additions and 0 deletions

View File

@ -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 */