Mesa (master): mesa/main: Move declaration to beginning of scope.

Jose Fonseca jrfonseca at kemper.freedesktop.org
Mon Nov 18 14:43:39 UTC 2013


Module: Mesa
Branch: master
Commit: 1e67ee8c9aa617201593583c0749aa964dba38dc
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=1e67ee8c9aa617201593583c0749aa964dba38dc

Author: José Fonseca <jfonseca at vmware.com>
Date:   Mon Nov 18 14:43:31 2013 +0000

mesa/main: Move declaration to beginning of scope.

Should fix MSVC build.

Trivial.

---

 src/mesa/main/performance_monitor.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/mesa/main/performance_monitor.c b/src/mesa/main/performance_monitor.c
index 6491b42..4981e6f 100644
--- a/src/mesa/main/performance_monitor.c
+++ b/src/mesa/main/performance_monitor.c
@@ -547,6 +547,7 @@ _mesa_GetPerfMonitorCounterDataAMD(GLuint monitor, GLenum pname,
    GET_CURRENT_CONTEXT(ctx);
 
    struct gl_perf_monitor_object *m = lookup_monitor(ctx, monitor);
+   bool result_available;
 
    if (m == NULL) {
       _mesa_error(ctx, GL_INVALID_VALUE,
@@ -569,7 +570,7 @@ _mesa_GetPerfMonitorCounterDataAMD(GLuint monitor, GLenum pname,
    }
 
    /* If the monitor has never ended, there is no result. */
-   bool result_available = m->Ended &&
+   result_available = m->Ended &&
       ctx->Driver.IsPerfMonitorResultAvailable(ctx, m);
 
    /* AMD appears to return 0 for all queries unless a result is available. */




More information about the mesa-commit mailing list