ContextException from Easy

Hey all.

I tried both Windows binary and source versions of Easy, but get:

Traceback (most recent call last):
  File "F:\Documents and Settings\jhartley\Desktop\pyweek-9-all\easy\easy-aga-3.1\run_game.pyw", line 138, in run
    main.main()
  File "lib\main.py", line 54, in main
    director.init(width=1024, height=600, do_not_scale=True)
  File "lib\cocos\director.py", line 233, in init
    self.window = window.Window( *args, **kwargs )
  File "lib\pyglet\window\win32\__init__.py", line 131, in __init__
    super(Win32Window, self).__init__(*args, **kwargs)
  File "lib\pyglet\window\__init__.py", line 558, in __init__
    self._create()
  File "lib\pyglet\window\win32\__init__.py", line 261, in _create
    self.context.attach(self.canvas)
  File "lib\pyglet\gl\win32.py", line 206, in attach
    raise gl.ContextException('Unable to share contexts')
ContextException: Unable to share contexts

I read on a PyWeek post about another game that this is a known pyglet issue on older cards. I do have a serially disappointing ATI X1400.

(log in to comment)

Comments

Yeah, that's a generic pyglet problem - it requires a shared OpenGL context. You can disable it by setting the environment variable PYGLET_SHARED_WINDOW=no but I'm not sure my game will work if you do that - there's a chance I load images etc. before explicitly opening the game window.