i965: Silence unused variable warning.

This commit is contained in:
Matt Turner
2014-10-23 15:45:35 -07:00
parent 40492be2a4
commit 76f27a6b03
@@ -476,9 +476,8 @@ intel_bufferobj_flush_mapped_range(struct gl_context *ctx,
{
struct brw_context *brw = brw_context(ctx);
struct intel_buffer_object *intel_obj = intel_buffer_object(obj);
GLbitfield access = obj->Mappings[index].AccessFlags;
assert(access & GL_MAP_FLUSH_EXPLICIT_BIT);
assert(obj->Mappings[index].AccessFlags & GL_MAP_FLUSH_EXPLICIT_BIT);
/* If we gave a direct mapping of the buffer instead of using a temporary,
* then there's nothing to do.