diff options
author | José Fonseca <jfonseca@vmware.com> | 2014-07-17 19:25:21 +0100 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2014-07-17 19:25:21 +0100 |
commit | 8b04b5aca4b0a894de40f4d53ae9750222d349a8 (patch) | |
tree | 66e57facf2ec0a553bb8932c09cd4db9ff2116aa /helpers | |
parent | 74b661a2f51a3efbb4f83152351b5879b908f787 (diff) |
gltrace: Simplify _need_user_arrays.
Diffstat (limited to 'helpers')
-rw-r--r-- | helpers/glsize.hpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/helpers/glsize.hpp b/helpers/glsize.hpp index 0293a139..6d836b4b 100644 --- a/helpers/glsize.hpp +++ b/helpers/glsize.hpp @@ -345,6 +345,17 @@ _element_array_buffer_binding(void) { return _glGetInteger(GL_ELEMENT_ARRAY_BUFFER_BINDING); } +/** + * Same as glGetVertexAttribiv, but passing the result in the return value. + */ +static inline GLint +_glGetVertexAttribi(GLuint index, GLenum pname) { + GLint param = 0; + _glGetVertexAttribiv(index, pname, ¶m); + return param; +} + + static inline GLuint _glDrawArrays_count(GLint first, GLsizei count) { |