From 48be83376dcfa68e0c52de3a509fc79ec964df22 Mon Sep 17 00:00:00 2001 From: valeriog Date: Mon, 27 Oct 2014 19:20:20 +0100 Subject: [PATCH] Wrong GL function being called and serialized for glGenQueries. --- renderdoc/driver/gl/wrappers/gl_query_funcs.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/renderdoc/driver/gl/wrappers/gl_query_funcs.cpp b/renderdoc/driver/gl/wrappers/gl_query_funcs.cpp index f2790f759..4ce3bc663 100644 --- a/renderdoc/driver/gl/wrappers/gl_query_funcs.cpp +++ b/renderdoc/driver/gl/wrappers/gl_query_funcs.cpp @@ -159,7 +159,7 @@ bool WrappedOpenGL::Serialise_glGenQueries(GLsizei n, GLuint* ids) if(m_State == READING) { GLuint real = 0; - m_Real.glGenSamplers(1, &real); + m_Real.glGenQueries(1, &real); GLResource res = QueryRes(GetCtx(), real); @@ -172,7 +172,7 @@ bool WrappedOpenGL::Serialise_glGenQueries(GLsizei n, GLuint* ids) void WrappedOpenGL::glGenQueries(GLsizei count, GLuint *ids) { - m_Real.glGenSamplers(count, ids); + m_Real.glGenQueries(count, ids); for(GLsizei i=0; i < count; i++) {