[virglrenderer-devel] [PATCH 03/16] vrend: Use more available glGetQueryObjectuiv

Jakob Bornecrantz jakob.bornecrantz at collabora.com
Fri Dec 22 18:57:43 UTC 2017


The glGetQueryObjectuiv is available both in GLES and in Desktop OpenGL.
While glGetQueryObjectiv is not available in GLES.

Signed-off-by: Jakob Bornecrantz <jakob.bornecrantz at collabora.com>
---
 src/vrend_renderer.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/vrend_renderer.c b/src/vrend_renderer.c
index 088b815..ce04106 100644
--- a/src/vrend_renderer.c
+++ b/src/vrend_renderer.c
@@ -5756,11 +5756,11 @@ void vrend_renderer_check_fences(void)
 
 static bool vrend_get_one_query_result(GLuint query_id, bool use_64, uint64_t *result)
 {
-   GLint ready;
+   GLuint ready;
    GLuint passed;
    GLuint64 pass64;
 
-   glGetQueryObjectiv(query_id, GL_QUERY_RESULT_AVAILABLE_ARB, &ready);
+   glGetQueryObjectuiv(query_id, GL_QUERY_RESULT_AVAILABLE_ARB, &ready);
 
    if (!ready)
       return false;
-- 
2.11.0



More information about the virglrenderer-devel mailing list