Revision: 4f56e8f596d8
Branch: default
Author: Juan J. Martínez <
j...@usebox.net>
Date: Mon May 26 16:13:26 2014 UTC
Log: source is a uint
http://code.google.com/p/pyglet/source/detail?r=4f56e8f596d8
Modified:
/pyglet/media/drivers/openal/__init__.py
=======================================
--- /pyglet/media/drivers/openal/__init__.py Mon May 26 09:08:10 2014 UTC
+++ /pyglet/media/drivers/openal/__init__.py Mon May 26 16:13:26 2014 UTC
@@ -217,7 +217,7 @@
"""Delete all sources and free all buffers"""
assert context._lock.locked()
for source, buffers in self._sources.items():
- al.alDeleteSources(1, ctypes.byref(ctypes.c_ulong(source)))
+ al.alDeleteSources(1, ctypes.byref(ctypes.c_uint(source)))
for b in buffers:
if not al.alIsBuffer(b):
# Protect against implementations that DO free buffers