]> git.tdb.fi Git - libs/gl.git/commitdiff
Add glBindBufferBase/Range functions to ARB_uniform_buffer_object
authorMikko Rasa <tdb@tdb.fi>
Fri, 24 Aug 2012 07:16:36 +0000 (10:16 +0300)
committerMikko Rasa <tdb@tdb.fi>
Fri, 24 Aug 2012 07:16:36 +0000 (10:16 +0300)
For some reason those functions are not tagged for the extension in
gl.spec.

source/arb_uniform_buffer_object.cpp
source/arb_uniform_buffer_object.h

index 5de8da78f2fc45d27c1b4bfffefe1b6be10c49e6..b788e03686cf3615968e391e8dd77ff3e2c16af0 100644 (file)
@@ -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<PFNGLGETACTIVEUNIFORMBLOCKIVPROC>(get_proc_address("glGetActiveUniformBlockiv"));
        glGetActiveUniformBlockName = reinterpret_cast<PFNGLGETACTIVEUNIFORMBLOCKNAMEPROC>(get_proc_address("glGetActiveUniformBlockName"));
        glUniformBlockBinding = reinterpret_cast<PFNGLUNIFORMBLOCKBINDINGPROC>(get_proc_address("glUniformBlockBinding"));
+       glBindBufferBase = reinterpret_cast<PFNGLBINDBUFFERBASEPROC>(get_proc_address("glBindBufferBase"));
+       glBindBufferRange = reinterpret_cast<PFNGLBINDBUFFERRANGEPROC>(get_proc_address("glBindBufferRange"));
 }
 
 } // namespace GL
index e53b1f2921ffed7d3117dd8ac899d91a59721f56..1b8ced53b508837dd45f8707a91e2ac6d11c65a5 100644 (file)
@@ -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();