diff options
Diffstat (limited to 'src/mesa/main/get.c')
-rw-r--r-- | src/mesa/main/get.c | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/src/mesa/main/get.c b/src/mesa/main/get.c index 723c48ce3c9..fac3f072bc3 100644 --- a/src/mesa/main/get.c +++ b/src/mesa/main/get.c @@ -1609,6 +1609,16 @@ _mesa_GetBooleanv( GLenum pname, GLboolean *params ) *params = INT_TO_BOOL(ctx->Array.ElementArrayBufferObj->Name); break; #endif +#if FEATURE_EXT_pixel_buffer_object + case GL_PIXEL_PACK_BUFFER_BINDING_EXT: + CHECK_EXTENSION_B(EXT_pixel_buffer_object, pname); + *params = INT_TO_BOOL(ctx->Pack.BufferObj->Name); + break; + case GL_PIXEL_UNPACK_BUFFER_BINDING_EXT: + CHECK_EXTENSION_B(EXT_pixel_buffer_object, pname); + *params = INT_TO_BOOL(ctx->Unpack.BufferObj->Name); + break; +#endif #if FEATURE_ARB_fragment_program case GL_FRAGMENT_PROGRAM_ARB: @@ -3149,6 +3159,16 @@ _mesa_GetDoublev( GLenum pname, GLdouble *params ) *params = (GLdouble) ctx->Array.ElementArrayBufferObj->Name; break; #endif +#if FEATURE_EXT_pixel_buffer_object + case GL_PIXEL_PACK_BUFFER_BINDING_EXT: + CHECK_EXTENSION_D(EXT_pixel_buffer_object, pname); + *params = (GLdouble) ctx->Pack.BufferObj->Name; + break; + case GL_PIXEL_UNPACK_BUFFER_BINDING_EXT: + CHECK_EXTENSION_D(EXT_pixel_buffer_object, pname); + *params = (GLdouble) ctx->Unpack.BufferObj->Name; + break; +#endif #if FEATURE_ARB_fragment_program case GL_FRAGMENT_PROGRAM_ARB: @@ -4665,6 +4685,16 @@ _mesa_GetFloatv( GLenum pname, GLfloat *params ) *params = (GLfloat) ctx->Array.ElementArrayBufferObj->Name; break; #endif +#if FEATURE_EXT_pixel_buffer_object + case GL_PIXEL_PACK_BUFFER_BINDING_EXT: + CHECK_EXTENSION_F(EXT_pixel_buffer_object, pname); + *params = (GLfloat) ctx->Pack.BufferObj->Name; + break; + case GL_PIXEL_UNPACK_BUFFER_BINDING_EXT: + CHECK_EXTENSION_F(EXT_pixel_buffer_object, pname); + *params = (GLfloat) ctx->Unpack.BufferObj->Name; + break; +#endif #if FEATURE_ARB_fragment_program case GL_FRAGMENT_PROGRAM_ARB: @@ -6219,6 +6249,16 @@ _mesa_GetIntegerv( GLenum pname, GLint *params ) *params = (GLint) ctx->Array.ElementArrayBufferObj->Name; break; #endif +#if FEATURE_EXT_pixel_buffer_object + case GL_PIXEL_PACK_BUFFER_BINDING_EXT: + CHECK_EXTENSION_I(EXT_pixel_buffer_object, pname); + *params = (GLint) ctx->Pack.BufferObj->Name; + break; + case GL_PIXEL_UNPACK_BUFFER_BINDING_EXT: + CHECK_EXTENSION_I(EXT_pixel_buffer_object, pname); + *params = (GLint) ctx->Unpack.BufferObj->Name; + break; +#endif #if FEATURE_ARB_fragment_program case GL_FRAGMENT_PROGRAM_ARB: |