summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2014-04-21 13:24:25 -0600
committerBrian Paul <brianp@vmware.com>2014-04-21 13:24:26 -0600
commite959274081e88da7ccbe9ae9165127e7c9a0ae66 (patch)
treeaccc707a6abba49af9b9cb0833aeef73d128db59
parentf8ae2a56c6164979223d2268691e354fe56d4bec (diff)
mesa: move declaration before code
To fix MSVC build.
-rw-r--r--src/mesa/main/fbobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/fbobject.c b/src/mesa/main/fbobject.c
index cd04fbe1114..ca16ae1ec7e 100644
--- a/src/mesa/main/fbobject.c
+++ b/src/mesa/main/fbobject.c
@@ -2770,6 +2770,7 @@ _mesa_GetFramebufferAttachmentParameteriv(GLenum target, GLenum attachment,
}
if (attachment == GL_DEPTH_STENCIL_ATTACHMENT) {
+ const struct gl_renderbuffer_attachment *depthAtt, *stencilAtt;
if (pname == GL_FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE) {
/* This behavior is first specified in OpenGL 4.4 specification.
*
@@ -2784,7 +2785,6 @@ _mesa_GetFramebufferAttachmentParameteriv(GLenum target, GLenum attachment,
return;
}
/* the depth and stencil attachments must point to the same buffer */
- const struct gl_renderbuffer_attachment *depthAtt, *stencilAtt;
depthAtt = get_attachment(ctx, buffer, GL_DEPTH_ATTACHMENT);
stencilAtt = get_attachment(ctx, buffer, GL_STENCIL_ATTACHMENT);
if (depthAtt->Renderbuffer != stencilAtt->Renderbuffer) {