MorphOS: disabled detectFramebufferSupport. added MorphOS doc

This commit is contained in:
BeWorld 2021-10-07 16:02:29 +02:00 committed by GitHub
parent c969644d7f
commit db3f152ca6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 75 additions and 1 deletions

View file

@ -319,7 +319,7 @@ void OSystem_SDL::detectFramebufferSupport() {
#if defined(USE_GLES2)
// Framebuffers are always available with GLES2
_supportsFrameBuffer = true;
#elif !defined(AMIGAOS)
#elif !defined(AMIGAOS) && !defined(__MORPHOS__)
// Spawn a 32x32 window off-screen with a GL context to test if framebuffers are supported
#if SDL_VERSION_ATLEAST(2, 0, 0)
SDL_Window *window = SDL_CreateWindow("", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, 32, 32, SDL_WINDOW_OPENGL | SDL_WINDOW_HIDDEN);