Blob Blame History Raw
Submitted upstream: <https://github.com/mcfletch/pyopengl/pull/112>

diff --git a/PyOpenGL-accelerate-3.1.7/src/numpy_formathandler.pyx b/PyOpenGL-accelerate-3.1.7/src/numpy_formathandler.pyx
index 0c01d78eebac87a9..47dacaa0753eac09 100644
--- a/PyOpenGL-accelerate-3.1.7/src/numpy_formathandler.pyx
+++ b/PyOpenGL-accelerate-3.1.7/src/numpy_formathandler.pyx
@@ -21,8 +21,7 @@ cdef extern from "numpy/arrayobject.h":
     int PyArray_ISCARRAY_RO( np.ndarray instance )
     cdef np.ndarray PyArray_Zeros(int nd, np.Py_intptr_t* dims, np.dtype, int fortran)
     cdef np.ndarray PyArray_EnsureArray(object)
-    cdef int PyArray_FillWithScalar(object, object)
-    cdef void import_array()
+    cdef int PyArray_FillWithScalar(np.ndarray, object)
     cdef void* PyArray_DATA( np.ndarray )
     cdef int PyArray_NDIM( np.ndarray )
     cdef int *PyArray_DIMS( np.ndarray )
@@ -226,4 +225,4 @@ cdef class NumpyHandler(FormatHandler):
 
 # Cython numpy tutorial neglects to mention this AFAICS
 # get segfaults without it
-import_array()
+np.import_array()