diff options
author | Sven Gothel <[email protected]> | 2015-08-30 06:26:29 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2015-08-30 06:26:29 +0200 |
commit | 5acb70d3d301fe66e4d03037325a91528e4c2c1d (patch) | |
tree | 971c01c0a098b1ad12ea2ac6fecbf3b422ee486c /src/newt/native/X11Display.c | |
parent | 18e487fdfe6f27564d976aa3a568d0ddc272d8ba (diff) |
Bug 1203: Add missing constraints in desktop *GLContext.create* methods: Bail out if GL ES is requested ; Fix test case
*GLContext.createImpl(..) shall throw an GLException:
*GLContext.createContextARBImpl(..) shall return 0:
- Desktop implementation: if GL ES is requested
- EGL implementation: if GL Desktop is requested, but not available
Otherwise GLContextImpl may mistake a desktop context for an ES one.
+++
Fix unit test TestGLAutoDrawableFactoryGLProfileDeviceNEWT.test11ES2OnDesktop():
We have to query the factory by desired profile,
since the desktop factory cannot produce an GL ES context.
Diffstat (limited to 'src/newt/native/X11Display.c')
0 files changed, 0 insertions, 0 deletions