Mesa (master): mesa: Move declaration to top of block.
Jose Fonseca
jrfonseca at kemper.freedesktop.org
Fri May 23 10:37:58 UTC 2014
Module: Mesa
Branch: master
Commit: c98b704128ed450b46c61e139d9f17c652a74c09
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=c98b704128ed450b46c61e139d9f17c652a74c09
Author: José Fonseca <jfonseca at vmware.com>
Date: Fri May 23 11:23:52 2014 +0100
mesa: Move declaration to top of block.
To fix MSVC build. Trivial.
---
src/mesa/drivers/common/meta_blit.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/mesa/drivers/common/meta_blit.c b/src/mesa/drivers/common/meta_blit.c
index 753afff..707269d 100644
--- a/src/mesa/drivers/common/meta_blit.c
+++ b/src/mesa/drivers/common/meta_blit.c
@@ -325,10 +325,12 @@ setup_glsl_blit_framebuffer(struct gl_context *ctx,
struct gl_renderbuffer *src_rb,
GLenum target)
{
+ unsigned texcoord_size;
+
/* target = GL_TEXTURE_RECTANGLE is not supported in GLES 3.0 */
assert(_mesa_is_desktop_gl(ctx) || target == GL_TEXTURE_2D);
- unsigned texcoord_size = 2 + (src_rb->Depth > 1 ? 1 : 0);
+ texcoord_size = 2 + (src_rb->Depth > 1 ? 1 : 0);
_mesa_meta_setup_vertex_objects(&blit->VAO, &blit->VBO, true,
2, texcoord_size, 0);
More information about the mesa-commit
mailing list