diff options
author | Kenneth Russel <[email protected]> | 2006-11-24 06:23:41 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2006-11-24 06:23:41 +0000 |
commit | bf11413418727af5957619fd2242056acc57f360 (patch) | |
tree | de555969002828871ec7ab18f23719cb24285edb /make/gl-common.cfg | |
parent | c5ba57aa77b4dbd49d2d2ee78e4520a3c8ceb3a0 (diff) |
Optimized buffer binding checks for glVertexPointer and similar calls
on request from John Burkey. Now caches the buffer binding for
GL_ARRAY_BUFFER, etc. upon glBindBuffer calls and invalidates this
cache upon glPushClientAttrib / glPopClientAttrib calls, refreshing
the state only when necessary using the glGetIntegerv call. Fixed
knowledge of available OpenGL versions to support OpenGL 2.1 (and
future minor version updates). Fixed breakage of
GL_NV_vertex_array_range support after recent upgrade of wglext.h and
glxext.h headers.
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@994 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'make/gl-common.cfg')
-rw-r--r-- | make/gl-common.cfg | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/make/gl-common.cfg b/make/gl-common.cfg index b06742518..984d0f45a 100644 --- a/make/gl-common.cfg +++ b/make/gl-common.cfg @@ -262,6 +262,10 @@ ArgumentIsString glGetAttribLocationARB 1 # JavaPrologue glBegin inBeginEndPair = true; JavaEpilogue glEnd inBeginEndPair = false; +JavaEpilogue glBindBuffer setBoundBufferObject({0}, {1}); +JavaEpilogue glBindBufferARB setBoundBufferObject({0}, {1}); +JavaEpilogue glPushClientAttrib clearBufferObjectState(); +JavaEpilogue glPopClientAttrib clearBufferObjectState(); BufferObjectKind UnpackPixel glBitmap BufferObjectKind UnpackPixel glColorTable BufferObjectKind UnpackPixel glColorSubTable |