mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 20:38:06 +02:00
mesa: fix queryobj whitespace.
Had done this before pushing but forgot to amend, doh.
This commit is contained in:
parent
ff7aa554a1
commit
aa4d311873
1 changed files with 26 additions and 26 deletions
|
|
@ -383,19 +383,19 @@ _mesa_GetQueryObjectivARB(GLuint id, GLenum pname, GLint *params)
|
|||
if (!q->Ready)
|
||||
ctx->Driver.WaitQuery(ctx, q);
|
||||
/* if result is too large for returned type, clamp to max value */
|
||||
if (q->Target == GL_ANY_SAMPLES_PASSED) {
|
||||
if (q->Result)
|
||||
*params = GL_TRUE;
|
||||
else
|
||||
*params = GL_FALSE;
|
||||
} else {
|
||||
if (q->Result > 0x7fffffff) {
|
||||
*params = 0x7fffffff;
|
||||
}
|
||||
else {
|
||||
*params = (GLint)q->Result;
|
||||
}
|
||||
}
|
||||
if (q->Target == GL_ANY_SAMPLES_PASSED) {
|
||||
if (q->Result)
|
||||
*params = GL_TRUE;
|
||||
else
|
||||
*params = GL_FALSE;
|
||||
} else {
|
||||
if (q->Result > 0x7fffffff) {
|
||||
*params = 0x7fffffff;
|
||||
}
|
||||
else {
|
||||
*params = (GLint)q->Result;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case GL_QUERY_RESULT_AVAILABLE_ARB:
|
||||
if (!q->Ready)
|
||||
|
|
@ -430,19 +430,19 @@ _mesa_GetQueryObjectuivARB(GLuint id, GLenum pname, GLuint *params)
|
|||
if (!q->Ready)
|
||||
ctx->Driver.WaitQuery(ctx, q);
|
||||
/* if result is too large for returned type, clamp to max value */
|
||||
if (q->Target == GL_ANY_SAMPLES_PASSED) {
|
||||
if (q->Result)
|
||||
*params = GL_TRUE;
|
||||
else
|
||||
*params = GL_FALSE;
|
||||
} else {
|
||||
if (q->Result > 0xffffffff) {
|
||||
*params = 0xffffffff;
|
||||
}
|
||||
else {
|
||||
*params = (GLuint)q->Result;
|
||||
}
|
||||
}
|
||||
if (q->Target == GL_ANY_SAMPLES_PASSED) {
|
||||
if (q->Result)
|
||||
*params = GL_TRUE;
|
||||
else
|
||||
*params = GL_FALSE;
|
||||
} else {
|
||||
if (q->Result > 0xffffffff) {
|
||||
*params = 0xffffffff;
|
||||
}
|
||||
else {
|
||||
*params = (GLuint)q->Result;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case GL_QUERY_RESULT_AVAILABLE_ARB:
|
||||
if (!q->Ready)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue