Mesa (master): meta: silence declaration after code warning on MinGW
Brian Paul
brianp at kemper.freedesktop.org
Fri Feb 27 22:27:27 UTC 2015
Module: Mesa
Branch: master
Commit: 5b089e5f15ca06be82ca36e21d678db17493b6b6
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=5b089e5f15ca06be82ca36e21d678db17493b6b6
Author: Brian Paul <brianp at vmware.com>
Date: Fri Feb 27 13:04:38 2015 -0700
meta: silence declaration after code warning on MinGW
Reviewed-by: Anuj Phogat <anuj.phogat at gmail.com>
---
src/mesa/drivers/common/meta_tex_subimage.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/mesa/drivers/common/meta_tex_subimage.c b/src/mesa/drivers/common/meta_tex_subimage.c
index 5ae12c8..bba2b4f 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
More information about the mesa-commit
mailing list