summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/enable.h
diff options
context:
space:
mode:
authorPierre-Eric Pelloux-Prayer <[email protected]>2019-04-29 17:39:49 +0200
committerMarek Olšák <[email protected]>2019-07-30 22:04:26 -0400
commitef84d93f3dabfa7e5bca82cfff05e836545a01ea (patch)
tree03d9cc02ccd383c971b84e6b142c15a8a4631222 /src/mesa/main/enable.h
parent7534c536ca0f4b2b123200f421460094034f37a3 (diff)
mesa: add EXT_dsa indexed texture commands functions
Added functions: - EnableClientStateIndexedEXT - DisableClientStateIndexedEXT - EnableClientStateiEXT - DisableClientStateiEXT Implemented using the idiom provided by the spec: if (array == TEXTURE_COORD_ARRAY) { int savedClientActiveTexture; GetIntegerv(CLIENT_ACTIVE_TEXTURE, &savedClientActiveTexture); ClientActiveTexture(TEXTURE0+index); XXX(array); ClientActiveTexture(savedActiveTexture); } else { // Invalid enum }
Diffstat (limited to 'src/mesa/main/enable.h')
-rw-r--r--src/mesa/main/enable.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/main/enable.h b/src/mesa/main/enable.h
index 10755e549d3..fa569edadd2 100644
--- a/src/mesa/main/enable.h
+++ b/src/mesa/main/enable.h
@@ -65,8 +65,14 @@ extern void GLAPIENTRY
_mesa_EnableClientState( GLenum cap );
extern void GLAPIENTRY
+_mesa_EnableClientStateiEXT( GLenum cap, GLuint index );
+
+extern void GLAPIENTRY
_mesa_DisableClientState( GLenum cap );
+extern void GLAPIENTRY
+_mesa_DisableClientStateiEXT( GLenum cap, GLuint index );
+
extern void
_mesa_set_multisample(struct gl_context *ctx, GLboolean state);