summaryrefslogtreecommitdiff
path: root/specs
diff options
context:
space:
mode:
authorJose Fonseca <jfonseca@vmware.com>2016-08-27 23:14:40 +0100
committerJose Fonseca <jfonseca@vmware.com>2016-08-27 23:14:40 +0100
commitac1df3747a30d12e63e6f1fd52ee3aaa0e4ab33d (patch)
tree8c9b98349362c63047927e169e4087cb36c3d87f /specs
parent886e2aeefb352550831aa04643b817926bf7ef01 (diff)
gltrace: Recognize GL_KTX_buffer_region enums.
Diffstat (limited to 'specs')
-rw-r--r--specs/glapi.py2
-rw-r--r--specs/gltypes.py7
2 files changed, 8 insertions, 1 deletions
diff --git a/specs/glapi.py b/specs/glapi.py
index 6c6feebf..b665364b 100644
--- a/specs/glapi.py
+++ b/specs/glapi.py
@@ -2817,7 +2817,7 @@ glapi.addFunctions([
# GL_KTX_buffer_region
# XXX: http://www.west.net/~brittain/3dsmax2.htm does not mention EXT suffix
- GlFunction(GLregion, "glNewBufferRegion", [(GLenum, "type")]),
+ GlFunction(GLregion, "glNewBufferRegion", [(GLenum_region, "type")]),
GlFunction(Void, "glDeleteBufferRegion", [(GLregion, "region")]),
GlFunction(Void, "glReadBufferRegion", [(GLregion, "region"), (GLint, "x"), (GLint, "y"), (GLsizei, "width"), (GLsizei, "height")]),
GlFunction(Void, "glDrawBufferRegion", [(GLregion, "region"), (GLint, "x"), (GLint, "y"), (GLsizei, "width"), (GLsizei, "height"), (GLint, "xDest"), (GLint, "yDest")]),
diff --git a/specs/gltypes.py b/specs/gltypes.py
index a9ffc4a1..9dd93bda 100644
--- a/specs/gltypes.py
+++ b/specs/gltypes.py
@@ -170,6 +170,13 @@ GLenum_error = FakeEnum(GLenum, [
"GL_TABLE_TOO_LARGE", # 0x8031
])
+GLenum_region = FakeEnum(GLenum, [
+ "GL_KTX_FRONT_REGION",
+ "GL_KTX_BACK_REGION",
+ "GL_KTX_Z_REGION",
+ "GL_KTX_STENCIL_REGION",
+])
+
GLbitfield = Alias("GLbitfield", UInt)
GLbitfield_attrib = Flags(GLbitfield, [