Skip to content

Commit

Permalink
Getting rid of ctypes.
Browse files Browse the repository at this point in the history
  • Loading branch information
rossant committed May 22, 2014
1 parent e565c43 commit 96480ed
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions vispy/gloo/variable.py
Expand Up @@ -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
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit 96480ed

Please sign in to comment.