Fix a runtime error when getting GraphicsCapabilites in Linux
Merge remote-tracking branch 'upstream/develop3d' into develop3d
Merge pull request #1255 from dellis1972/develop3d

Fix a runtime error when getting GraphicsCapabilites in Linux