diff options
author | marha <marha@users.sourceforge.net> | 2011-11-29 12:25:28 +0100 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2011-11-29 12:25:28 +0100 |
commit | 2cfebffb491807a465a8e5f7daca582d8aefb829 (patch) | |
tree | 1e17cf480a441bc4b941008005fcd0cc6c3d09a6 /mesalib/src/mesa/main/bufferobj.h | |
parent | 7417e9a171736b5279881cd4381fb58c617a23d9 (diff) | |
download | vcxsrv-2cfebffb491807a465a8e5f7daca582d8aefb829.tar.gz vcxsrv-2cfebffb491807a465a8e5f7daca582d8aefb829.tar.bz2 vcxsrv-2cfebffb491807a465a8e5f7daca582d8aefb829.zip |
mesa git update 29 nov 2011
Diffstat (limited to 'mesalib/src/mesa/main/bufferobj.h')
-rw-r--r-- | mesalib/src/mesa/main/bufferobj.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesalib/src/mesa/main/bufferobj.h b/mesalib/src/mesa/main/bufferobj.h index b4e70f2f0..c0d5a641a 100644 --- a/mesalib/src/mesa/main/bufferobj.h +++ b/mesalib/src/mesa/main/bufferobj.h @@ -53,7 +53,7 @@ _mesa_bufferobj_mapped(const struct gl_buffer_object *obj) static inline GLboolean _mesa_is_bufferobj(const struct gl_buffer_object *obj) { - return obj->Name != 0; + return obj != NULL && obj->Name != 0; } |