Skip to content

Commit

Permalink
gltrace: Recognize GL_KTX_buffer_region enums.
Browse files Browse the repository at this point in the history
  • Loading branch information
jrfonseca committed Aug 27, 2016
1 parent 886e2ae commit ac1df37
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
7 changes: 7 additions & 0 deletions dispatch/glimports.hpp
Expand Up @@ -85,6 +85,13 @@
#define GL_TRANSPOSE_PROJECTIVE_3D_NV 0x9099


// GL_KTX_buffer_region
#define GL_KTX_FRONT_REGION 0
#define GL_KTX_BACK_REGION 1
#define GL_KTX_Z_REGION 2
#define GL_KTX_STENCIL_REGION 3


// GL_VMWX_map_buffer_debug
#define GL_MAP_NOTIFY_EXPLICIT_BIT_VMWX 0x80000000

Expand Down
2 changes: 1 addition & 1 deletion specs/glapi.py
Expand Up @@ -2817,7 +2817,7 @@ def OutGlString(charType, lengthPtr, argName):

# 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")]),
Expand Down
7 changes: 7 additions & 0 deletions specs/gltypes.py
Expand Up @@ -170,6 +170,13 @@
"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, [
Expand Down

0 comments on commit ac1df37

Please sign in to comment.