diff options
Diffstat (limited to 'src/mesa/main/objectpurge.c')
-rw-r--r-- | src/mesa/main/objectpurge.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/objectpurge.c b/src/mesa/main/objectpurge.c index 28d046b565c..090e28b3447 100644 --- a/src/mesa/main/objectpurge.c +++ b/src/mesa/main/objectpurge.c @@ -53,7 +53,7 @@ buffer_object_purgeable(struct gl_context *ctx, GLuint name, GLenum option) "glObjectPurgeable(name = 0x%x)", name); return 0; } - if (!_mesa_is_bufferobj(bufObj)) { + if (!bufObj) { _mesa_error(ctx, GL_INVALID_OPERATION, "glObjectPurgeable(buffer 0)" ); return 0; } |