Commits

Leonard Ritter committed b37ab87

glVertexAttribPointer() accepts int offset

Comments (0)

Files changed (1)

         return ptr
     
 def glVertexAttribPointer(index, size, typeid, normalized, stride, data):
-    if data:
+    if isinstance(data, int):
+        ptr = _ffi.cast('GLvoid *', data)
+    elif data:
         type_= GL_TYPE_ID_TO_TYPE[typeid]
         ptr = _array(type_, data)
     else: