mesa/main: Add support for point size array in _mesa_GetPointerv.
authorChia-I Wu <olvaffe@gmail.com>
Mon, 7 Sep 2009 06:46:22 +0000 (14:46 +0800)
committerBrian Paul <brianp@vmware.com>
Fri, 6 Nov 2009 03:04:10 +0000 (20:04 -0700)
Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
src/mesa/main/getstring.c

index 6599ed9698d88f91ce28035fbd1a60f4175b3fab..4b1f4b0ea11b98c5ed3c9adca7398ed8079d8c62 100644 (file)
@@ -242,6 +242,11 @@ _mesa_GetPointerv( GLenum pname, GLvoid **params )
       case GL_SELECTION_BUFFER_POINTER:
          *params = ctx->Select.Buffer;
          break;
+#if FEATURE_point_size_array
+      case GL_POINT_SIZE_ARRAY_POINTER_OES:
+         *params = (GLvoid *) ctx->Array.ArrayObj->PointSize.Ptr;
+         break;
+#endif
       default:
          _mesa_error( ctx, GL_INVALID_ENUM, "glGetPointerv" );
          return;