diff --git a/backends/graphics/surfacesdl/surfacesdl-graphics.cpp b/backends/graphics/surfacesdl/surfacesdl-graphics.cpp index a4e6eacb9d0..4413b8e21e0 100644 --- a/backends/graphics/surfacesdl/surfacesdl-graphics.cpp +++ b/backends/graphics/surfacesdl/surfacesdl-graphics.cpp @@ -616,7 +616,7 @@ void SurfaceSdlGraphicsManager::drawSideTexturesOpenGL() { } OpenGL::FrameBuffer *SurfaceSdlGraphicsManager::createFramebuffer(uint width, uint height) { -#ifndef USE_GLES2 +#if !defined(USE_GLES2) && !defined(AMIGAOS) if (_antialiasing && OpenGLContext.framebufferObjectMultisampleSupported) { return new OpenGL::MultiSampleFrameBuffer(width, height, _antialiasing); } else diff --git a/graphics/opengl/system_headers.h b/graphics/opengl/system_headers.h index 214044cf566..7725b5ab5d2 100644 --- a/graphics/opengl/system_headers.h +++ b/graphics/opengl/system_headers.h @@ -46,11 +46,6 @@ #define GL_UNPACK_ROW_LENGTH 0x0CF2 #endif -#if !defined(GL_MAX_SAMPLES) -// The Android SDK does not declare GL_MAX_SAMPLES -#define GL_MAX_SAMPLES 0x8D57 -#endif - #elif defined(USE_GLEW) #include #elif defined(SDL_BACKEND) && defined(USE_OPENGL) @@ -60,3 +55,8 @@ #endif #endif + +#if !defined(GL_MAX_SAMPLES) +// The Android SDK and SDL1 don't declare GL_MAX_SAMPLES +#define GL_MAX_SAMPLES 0x8D57 +#endif