summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2014-05-23 11:23:52 +0100
committerBrian Paul <brianp@vmware.com>2014-09-03 16:39:53 -0600
commit7ffc8556ca81976fe4f92cda5253b1685149748a (patch)
tree6f6de980e69ecad754b6ca83272976ebd2258160 /src
parent65324b89b89d3102c5a66c9ca7a3ff5f954cef19 (diff)
mesa: Move declaration to top of block.
To fix MSVC build. Trivial. (cherry picked from commit c98b704128ed450b46c61e139d9f17c652a74c09)
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/common/meta_blit.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/drivers/common/meta_blit.c b/src/mesa/drivers/common/meta_blit.c
index 58492e06159..0de830c1553 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);