summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2013-04-11 10:14:58 -0700
committerEric Anholt <[email protected]>2013-04-12 16:32:13 -0700
commit1433936fe52489caa57079c8debf1138e956770d (patch)
tree60eff156b9cf0c9e2b1a8f3fcc26ebf37bb9f06b /src/mesa
parent9167ba85841d6ad94ec886bc55ab7cb5afc435a4 (diff)
intel: Fix an unused variable warning in the release build.
Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/intel/intel_mipmap_tree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_mipmap_tree.c b/src/mesa/drivers/dri/intel/intel_mipmap_tree.c
index 7da020103e2..47f81b13a5e 100644
--- a/src/mesa/drivers/dri/intel/intel_mipmap_tree.c
+++ b/src/mesa/drivers/dri/intel/intel_mipmap_tree.c
@@ -510,7 +510,6 @@ intel_miptree_create_for_dri2_buffer(struct intel_context *intel,
{
struct intel_mipmap_tree *singlesample_mt = NULL;
struct intel_mipmap_tree *multisample_mt = NULL;
- GLenum base_format = _mesa_get_format_base_format(format);
/* Only the front and back buffers, which are color buffers, are shared
* through DRI2.
@@ -518,7 +517,8 @@ intel_miptree_create_for_dri2_buffer(struct intel_context *intel,
assert(dri_attachment == __DRI_BUFFER_BACK_LEFT ||
dri_attachment == __DRI_BUFFER_FRONT_LEFT ||
dri_attachment == __DRI_BUFFER_FAKE_FRONT_LEFT);
- assert(base_format == GL_RGB || base_format == GL_RGBA);
+ assert(_mesa_get_format_base_format(format) == GL_RGB ||
+ _mesa_get_format_base_format(format) == GL_RGBA);
singlesample_mt = intel_miptree_create_for_region(intel, GL_TEXTURE_2D,
format, region);