projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2cfbf84
)
mesa/main: Move declaration to beginning of scope.
author
José Fonseca
<jfonseca@vmware.com>
Mon, 18 Nov 2013 14:43:31 +0000
(14:43 +0000)
committer
José Fonseca
<jfonseca@vmware.com>
Mon, 18 Nov 2013 14:43:31 +0000
(14:43 +0000)
Should fix MSVC build.
Trivial.
src/mesa/main/performance_monitor.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/performance_monitor.c
b/src/mesa/main/performance_monitor.c
index 6491b4200f5edde0d30cf18feb836ded2536aac4..4981e6fb27c6213cee688c298a85b8a656610493 100644
(file)
--- 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. */