aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/intel_buffer_objects.c
diff options
context:
space:
mode:
authorMatt Turner <[email protected]>2014-10-23 15:45:35 -0700
committerMatt Turner <[email protected]>2014-10-23 16:20:07 -0700
commit76f27a6b035630574f275af3484f5d29753bb102 (patch)
treec7d3020eef895d44319ee1b587a42583734e68c8 /src/mesa/drivers/dri/i965/intel_buffer_objects.c
parent40492be2a4a339b02c38990ad8736644f3a8776b (diff)
i965: Silence unused variable warning.
Diffstat (limited to 'src/mesa/drivers/dri/i965/intel_buffer_objects.c')
-rw-r--r--src/mesa/drivers/dri/i965/intel_buffer_objects.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_buffer_objects.c b/src/mesa/drivers/dri/i965/intel_buffer_objects.c
index b4eb0765a10..a7242b0ee64 100644
--- a/src/mesa/drivers/dri/i965/intel_buffer_objects.c
+++ b/src/mesa/drivers/dri/i965/intel_buffer_objects.c
@@ -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.