[pyglet] push by useboxnet - Only if there's a context on 2014-05-26 09:12 GMT

1 view
Skip to first unread message

pyg...@googlecode.com

unread,
May 26, 2014, 5:12:17 AM5/26/14
to pyglet-...@googlegroups.com
Revision: 0c040a7680f4
Branch: default
Author: Juan J. Martínez <j...@usebox.net>
Date: Mon May 26 09:08:10 2014 UTC
Log: Only if there's a context
http://code.google.com/p/pyglet/source/detail?r=0c040a7680f4

Modified:
/pyglet/media/drivers/openal/__init__.py

=======================================
--- /pyglet/media/drivers/openal/__init__.py Mon May 26 08:42:13 2014 UTC
+++ /pyglet/media/drivers/openal/__init__.py Mon May 26 09:08:10 2014 UTC
@@ -688,11 +688,11 @@
if _debug:
print "Cleaning up audio driver"

- context.lock()
- bufferPool.delete()
- context.unlock()
-
if context:
+ context.lock()
+ bufferPool.delete()
+ context.unlock()
+
context.delete()
context = None

Reply all
Reply to author
Forward
0 new messages