AMIGAOS4: SDL/OGL - Add backwards compatibility for AmigaOS4 (followup)
Since the internal switch to OpenGL 2.0, residualvm stopped working entirely on the AmigaOS4 platform. this is a followup to PR #1455 Obviously the Proile Mask must be set to "0" otherwise it will bail out again with a "Error: Invalid Window"
This commit is contained in:
parent
3ae9ea5d08
commit
e486485333
1 changed files with 4 additions and 2 deletions
|
@ -280,15 +280,17 @@ bool OpenGLSdlGraphicsManager::createOrUpdateGLContext(uint effectiveWidth, uint
|
|||
#else
|
||||
// AmigaOS4's OpenGL implementation is close to 1.3. Until that changes we need
|
||||
// to use 1.3 as version or residualvm will cease working at all on that platform.
|
||||
// This will be revised and removed once AmigaOS4 supports 2.x or OpenGLES.
|
||||
// Profile Mask has to be 0 as well.
|
||||
// This will be revised and removed once AmigaOS4 supports 2.x or OpenGLES2.
|
||||
#ifdef __amigaos4__
|
||||
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 1);
|
||||
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 3);
|
||||
SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, 0);
|
||||
#else
|
||||
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 2);
|
||||
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 1);
|
||||
SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_COMPATIBILITY);
|
||||
#endif
|
||||
SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_COMPATIBILITY);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue