diff options
author | Sven Gothel <[email protected]> | 2010-11-03 07:30:20 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2010-11-03 07:30:20 +0100 |
commit | f3c59f7491e0912d6f81e1f6218aecef381533bb (patch) | |
tree | f94310964ec4b767fb65b9e33b97c8963dff1962 /make/scripts/cmpOld2New.sh | |
parent | 714e9375bbba134d333e50adf63cdd9237eb21af (diff) |
JOGL/X11: Fix context scanning, misc simplifications ..
Fix context scanning
---------------------
Ie on 3.0 NVidia systems, trying to create a 4.1 context leads
to a BadAlloc X11 error.
A prev patch disabled the X11 error handler, to reduce sideeffects.
In case AWT is not being used, the BadAlloc isn't catched and the JVM freezes
within the native function call.
Decorating context scanning with NativeWindow's 'setX11ErrorHandler' solves this issue.
Simplifications
-----------------
X11: always try a direct context. If this is not possible due to the display connection,
an indirect is being used anyways. Hence 'createContext(boolean direct)' -> 'createImpl()'.
X11/WGL: Simplify the context creation logic a bit.
Diffstat (limited to 'make/scripts/cmpOld2New.sh')
0 files changed, 0 insertions, 0 deletions