Mesa (8.0): gallium/postprocess: move declarations before code
Brian Paul
brianp at kemper.freedesktop.org
Thu Feb 2 22:22:47 UTC 2012
Module: Mesa
Branch: 8.0
Commit: a4cb2fdb644297484a80f173d3e96e140a64ef85
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=a4cb2fdb644297484a80f173d3e96e140a64ef85
Author: Brian Paul <brianp at vmware.com>
Date: Thu Feb 2 15:14:04 2012 -0700
gallium/postprocess: move declarations before code
To fix MSVC build.
(cherry picked from commit 8cbe699c0dd9b8d4accf1eaa570689f813aa3c2f)
---
src/gallium/auxiliary/postprocess/pp_run.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/src/gallium/auxiliary/postprocess/pp_run.c b/src/gallium/auxiliary/postprocess/pp_run.c
index aa1badc..89b88a5 100644
--- a/src/gallium/auxiliary/postprocess/pp_run.c
+++ b/src/gallium/auxiliary/postprocess/pp_run.c
@@ -42,7 +42,7 @@ void
pp_run(struct pp_queue_t *ppq, struct pipe_resource *in,
struct pipe_resource *out, struct pipe_resource *indepth)
{
-
+ struct pipe_resource *refin = NULL, *refout = NULL;
unsigned int i;
if (in->width0 != ppq->p->framebuffer.width ||
@@ -65,7 +65,6 @@ pp_run(struct pp_queue_t *ppq, struct pipe_resource *in,
}
// Kept only for this frame.
- struct pipe_resource *refin = NULL, *refout = NULL;
pipe_resource_reference(&ppq->depth, indepth);
pipe_resource_reference(&refin, in);
pipe_resource_reference(&refout, out);
More information about the mesa-commit
mailing list