From: Mikko Rasa Date: Fri, 24 Aug 2012 07:16:36 +0000 (+0300) Subject: Add glBindBufferBase/Range functions to ARB_uniform_buffer_object X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=9d2291e3f3c007b1aa7fe66d882a8c1fce8fdee6;p=libs%2Fgl.git Add glBindBufferBase/Range functions to ARB_uniform_buffer_object For some reason those functions are not tagged for the extension in gl.spec. --- diff --git a/source/arb_uniform_buffer_object.cpp b/source/arb_uniform_buffer_object.cpp index 5de8da78..b788e036 100644 --- a/source/arb_uniform_buffer_object.cpp +++ b/source/arb_uniform_buffer_object.cpp @@ -11,6 +11,8 @@ PFNGLGETUNIFORMBLOCKINDEXPROC glGetUniformBlockIndex = 0; PFNGLGETACTIVEUNIFORMBLOCKIVPROC glGetActiveUniformBlockiv = 0; PFNGLGETACTIVEUNIFORMBLOCKNAMEPROC glGetActiveUniformBlockName = 0; PFNGLUNIFORMBLOCKBINDINGPROC glUniformBlockBinding = 0; +PFNGLBINDBUFFERBASEPROC glBindBufferBase = 0; +PFNGLBINDBUFFERRANGEPROC glBindBufferRange = 0; void init_arb_uniform_buffer_object() { @@ -21,6 +23,8 @@ void init_arb_uniform_buffer_object() glGetActiveUniformBlockiv = reinterpret_cast(get_proc_address("glGetActiveUniformBlockiv")); glGetActiveUniformBlockName = reinterpret_cast(get_proc_address("glGetActiveUniformBlockName")); glUniformBlockBinding = reinterpret_cast(get_proc_address("glUniformBlockBinding")); + glBindBufferBase = reinterpret_cast(get_proc_address("glBindBufferBase")); + glBindBufferRange = reinterpret_cast(get_proc_address("glBindBufferRange")); } } // namespace GL diff --git a/source/arb_uniform_buffer_object.h b/source/arb_uniform_buffer_object.h index e53b1f29..1b8ced53 100644 --- a/source/arb_uniform_buffer_object.h +++ b/source/arb_uniform_buffer_object.h @@ -14,6 +14,8 @@ extern PFNGLGETUNIFORMBLOCKINDEXPROC glGetUniformBlockIndex; extern PFNGLGETACTIVEUNIFORMBLOCKIVPROC glGetActiveUniformBlockiv; extern PFNGLGETACTIVEUNIFORMBLOCKNAMEPROC glGetActiveUniformBlockName; extern PFNGLUNIFORMBLOCKBINDINGPROC glUniformBlockBinding; +extern PFNGLBINDBUFFERBASEPROC glBindBufferBase; +extern PFNGLBINDBUFFERRANGEPROC glBindBufferRange; void init_arb_uniform_buffer_object();