You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Daniel Gillet:
After some investigation, I found the culprit. It's in particle.py, at line 174:
pic = pyglet.image.load('fire.png', file=pyglet.resource.file('fire.png'))
This is a class attribute, and gets executed at import, before director.init() had a chance to run. Still it's annoying that I need to initialize the director before loading images like this as class attributes.
...
It's actually not pyglet.image.load but texture = pic.get_texture() which is causing problem.
...
(Error seen with IWin 7, py27 or py34, gpu Intel HD Graphics4000 using either pyglet 1.2rc 1 or pyglet 1.2.0 release. )
The text was updated successfully, but these errors were encountered:
error 'cannot share context' while import cocos.particle_systems before calling director.init
seen in mailing lists:
https://groups.google.com/forum/#!topic/cocos-discuss/zg1_Xd7hG6A
https://groups.google.com/forum/#!topic/pyglet-users/44pS-xkoObI
Narrowing the issue by the OPs:
Daniel Gillet:
After some investigation, I found the culprit. It's in particle.py, at line 174:
pic = pyglet.image.load('fire.png', file=pyglet.resource.file('fire.png'))
This is a class attribute, and gets executed at import, before director.init() had a chance to run. Still it's annoying that I need to initialize the director before loading images like this as class attributes.
...
It's actually not pyglet.image.load but texture = pic.get_texture() which is causing problem.
...
(Error seen with IWin 7, py27 or py34, gpu Intel HD Graphics4000 using either pyglet 1.2rc 1 or pyglet 1.2.0 release. )
The text was updated successfully, but these errors were encountered: