From 96480ed7dddf163592db648a85a5753a65560404 Mon Sep 17 00:00:00 2001 From: Cyrille Rossant Date: Thu, 22 May 2014 14:30:36 +0200 Subject: [PATCH] Getting rid of ctypes. --- vispy/gloo/variable.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/vispy/gloo/variable.py b/vispy/gloo/variable.py index 353df8a2e6..155da24424 100644 --- a/vispy/gloo/variable.py +++ b/vispy/gloo/variable.py @@ -3,8 +3,6 @@ # Copyright (c) 2014, Vispy Development Team. All Rights Reserved. # Distributed under the (new) BSD License. See LICENSE.txt for more info. # ----------------------------------------------------------------------------- -import ctypes - import numpy as np from . import gl @@ -330,7 +328,7 @@ def _activate(self): stride = self.data.stride gl.glEnableVertexAttribArray(self.handle) gl.glVertexAttribPointer(self.handle, size, gtype, gl.GL_FALSE, - stride, ctypes.c_void_p(self.data.offset)) + stride, self.data.offset) def _deactivate(self): if isinstance(self.data, VertexBuffer):