summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2015-02-27 13:04:38 -0700
committerBrian Paul <[email protected]>2015-02-27 15:22:24 -0700
commit5b089e5f15ca06be82ca36e21d678db17493b6b6 (patch)
treef1f8134cb2740d5d845a1f193324d415135a7075 /src/mesa
parent544f56b75a58baf4cfadb646b0a21939a67c0113 (diff)
meta: silence declaration after code warning on MinGW
Reviewed-by: Anuj Phogat <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/common/meta_tex_subimage.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/drivers/common/meta_tex_subimage.c b/src/mesa/drivers/common/meta_tex_subimage.c
index 5ae12c8a115..bba2b4f2af0 100644
--- a/src/mesa/drivers/common/meta_tex_subimage.c
+++ b/src/mesa/drivers/common/meta_tex_subimage.c
@@ -78,9 +78,10 @@ create_texture_for_pbo(struct gl_context *ctx, bool create_pbo,
*tmp_pbo = 0;
buffer_obj = packing->BufferObj;
} else {
- assert(create_pbo);
bool is_pixel_pack = pbo_target == GL_PIXEL_PACK_BUFFER;
+ assert(create_pbo);
+
_mesa_GenBuffers(1, tmp_pbo);
/* We are not doing this inside meta_begin/end. However, we know the