mcedit/mcedit — Issue #38: OS X 10.7: Cocoa "File Open" dialog causes GL context to be lost.
Author: codewarrior0
Created: 2012-02-16 00:55:37+00:00
State: open

There is a workaround in mcplatform.py, search for `def Lion()`. The exception occurs the next time a GL call is attempted, and looks like this:

```
Release: MCEdit-stable33
2012-02-15 22:48:03.050863
Platform: darwin, Name: posix, VersionDarwin Kernel Version 11.3.0: Thu Jan 12 18:47:41 PST 2012; root:xnu-1699.24.23~1/RELEASE_X86_64, Arch: ('64bit', '')
Platform:Darwin-11.3.0-x86_64-i386-64bit, Processor: i386,
uname: ['Darwin', '-0xa8a2f38dd391b94', '11.3.0', 'Darwin Kernel Version 11.3.0: Thu Jan 12 18:47:41 PST 2012; root:xnu-1699.24.23~1/RELEASE_X86_64', 'x86_64', 'i386']
Vendor: None
Renderer: None
Frames: 485
Traceback (most recent call last):
File "mcedit.py", line 1367, in _main
File "mcedit.py", line 1299, in main (self=)
File "[MCEdit folder]/MCEditData/albow/root.py", line 95, in run (self=)
self.run_modal(None)
File "[MCEdit folder]/MCEditData/albow/root.py", line 144, in run_modal (self=)
self.gl_draw_all(self, (0, 0))
File "[MCEdit folder]/MCEditData/albow/widget.py", line 702, in gl_draw_all (self=)
subwidget.gl_draw_all(root, suboffset)
File "[MCEdit folder]/MCEditData/albow/widget.py", line 702, in gl_draw_all (self=<__main__.MCEdit object at 0x111f0ac90>)
subwidget.gl_draw_all(root, suboffset)
File "[MCEdit folder]/MCEditData/albow/widget.py", line 702, in gl_draw_all (self=)
subwidget.gl_draw_all(root, suboffset)
File "[MCEdit folder]/MCEditData/albow/widget.py", line 699, in gl_draw_all (self=)
self.gl_draw_self(root, offset)
File "[MCEdit folder]/MCEditData/albow/openglwidgets.py", line 22, in gl_draw_self (self=)
self.gl_draw_viewport()
File "[MCEdit folder]/MCEditData/albow/openglwidgets.py", line 28, in gl_draw_viewport (self=)
self.gl_draw()
File "leveleditor.py", line 1017, in gl_draw (self=)
File "leveleditor.py", line 1119, in render (self=)
File "leveleditor.py", line 2093, in drawStars (self=)
File "[MCEdit folder]/MCEditData/OpenGL/latebind.py", line 41, in __call__ (self=)
return self._finalCall( *args, **named )
File "[MCEdit folder]/MCEditData/OpenGL/wrapper.py", line 724, in wrapperCall (self=)
cArguments,
File "[MCEdit folder]/MCEditData/OpenGL/arrays/arrayhelpers.py", line 153, in __call__ (self=