projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
57876fe
)
mesa: Move declaration to top of block.
author
José Fonseca
<jfonseca@vmware.com>
Fri, 23 May 2014 10:23:52 +0000
(11:23 +0100)
committer
José Fonseca
<jfonseca@vmware.com>
Fri, 23 May 2014 10:37:47 +0000
(11:37 +0100)
To fix MSVC build. Trivial.
src/mesa/drivers/common/meta_blit.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/common/meta_blit.c
b/src/mesa/drivers/common/meta_blit.c
index 753affff8ae23fffd1576f275c7c570cbca7c02a..707269dd687073bad3dcc1c0307f70e38d2e99ab 100644
(file)
--- 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);