i965: Silence unused variable warning.
authorMatt Turner <mattst88@gmail.com>
Thu, 23 Oct 2014 22:45:35 +0000 (15:45 -0700)
committerMatt Turner <mattst88@gmail.com>
Thu, 23 Oct 2014 23:20:07 +0000 (16:20 -0700)
src/mesa/drivers/dri/i965/intel_buffer_objects.c

index b4eb0765a101c80d49b8e168ebb11dd48b2e2208..a7242b0ee6402f6542c05ba71a43c6c6c0af2456 100644 (file)
@@ -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.