diff --git a/src/osdep/amiberry.cpp b/src/osdep/amiberry.cpp index 13237df9..95e6b04e 100644 --- a/src/osdep/amiberry.cpp +++ b/src/osdep/amiberry.cpp @@ -3691,12 +3691,9 @@ int main(int argc, char* argv[]) write_log("SDL could not initialize! SDL_Error: %s\n", SDL_GetError()); abort(); } -#ifdef USE_OPENGL - SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1); - 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_ES); -#endif + + SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_ES); + atexit(SDL_Quit); write_log(_T("Sorting devices and modes...\n")); sortdisplays();