From a1558e9986f40c2374e30f6fdc61927ae0effa3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Sun, 16 Aug 2015 21:27:15 -0700 Subject: [PATCH] GL: Fixed imports. --- src/glimports.h | 2 ++ src/renderer_gl.h | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/src/glimports.h b/src/glimports.h index eea67ff6..bd36bc7d 100644 --- a/src/glimports.h +++ b/src/glimports.h @@ -505,6 +505,7 @@ GL_IMPORT_NV___(true, PFNGLGENQUERIESPROC, glGenQueries) GL_IMPORT_NV___(true, PFNGLDELETEQUERIESPROC, glDeleteQueries); GL_IMPORT_NV___(true, PFNGLBEGINQUERYPROC, glBeginQuery); GL_IMPORT_NV___(true, PFNGLENDQUERYPROC, glEndQuery); +GL_IMPORT_NV___(true, PFNGLGETQUERYOBJECTIVPROC, glGetQueryObjectiv); GL_IMPORT_NV___(true, PFNGLGETQUERYOBJECTUI64VPROC, glGetQueryObjectui64v); GL_IMPORT (true, PFNGLINVALIDATEFRAMEBUFFERPROC, glInvalidateFramebuffer, glDiscardFramebufferEXT); @@ -567,6 +568,7 @@ GL_IMPORT______(true, PFNGLGENQUERIESPROC, glGenQueries) GL_IMPORT______(true, PFNGLDELETEQUERIESPROC, glDeleteQueries); GL_IMPORT______(true, PFNGLBEGINQUERYPROC, glBeginQuery); GL_IMPORT______(true, PFNGLENDQUERYPROC, glEndQuery); +GL_IMPORT______(true, PFNGLGETQUERYOBJECTIVPROC, glGetQueryObjectiv); GL_IMPORT______(true, PFNGLGETQUERYOBJECTUI64VPROC, glGetQueryObjectui64v); GL_IMPORT______(true, PFNGLDRAWARRAYSINDIRECTPROC, glDrawArraysIndirect); diff --git a/src/renderer_gl.h b/src/renderer_gl.h index 52a85c84..8a306314 100644 --- a/src/renderer_gl.h +++ b/src/renderer_gl.h @@ -393,6 +393,10 @@ typedef uint64_t GLuint64; # define GL_QUERY_RESULT 0x8866 #endif // GL_QUERY_RESULT +#ifndef GL_QUERY_RESULT_AVAILABLE +# define GL_QUERY_RESULT_AVAILABLE 0x8867 +#endif // GL_QUERY_RESULT_AVAILABLE + #ifndef GL_READ_FRAMEBUFFER # define GL_READ_FRAMEBUFFER 0x8CA8 #endif /// GL_READ_FRAMEBUFFER