Jogamp
Bug 1084: Fix GLProfile Mapping regarding hardware priority, honor software/hardware...
authorSven Gothel <sgothel@jausoft.com>
Wed, 1 Oct 2014 21:51:33 +0000 (23:51 +0200)
committerSven Gothel <sgothel@jausoft.com>
Wed, 1 Oct 2014 21:51:33 +0000 (23:51 +0200)
commitc85e0566c55cdc99668dd373e6b6b8b66a557c8e
tree01baa03df81f275dd67a15800e188288d321ca0b
parentabf127cbb3e697f778decf7ce0edd0ad2f433cb7
Bug 1084: Fix GLProfile Mapping regarding hardware priority, honor software/hardware attribute of all profiles

GLProfile's mapping code does not consider the following combination:
  - GL4 software
  - GL3 hardware

and hence maps GL4-software -> [GL2ES2, GL2GL3],
where GL3-hardware -> [GL2ES2, GL2GL3] is desired.

This combination has recently been observed on
Mac OSX 10.9.5, which includes a software GL 4.1 implementation.

However, other systems could be affected as well.

+++

Fix GLProfile.computeProfileImpl(..):

Only use the higher profile, if hardware-accelerated or none of the
lower profiles offers hardware-acceleration!

This extra condition was missing for certain profiles,
e.g. GL4, GL4bc, GL3, GL3bc and GL2.
make/scripts/tests.sh
src/jogl/classes/javax/media/opengl/GLProfile.java
http://JogAmp.org git info: FAQ, tutorial and man pages.