93
91
SDL_Window *oldWin = SDL_GL_GetCurrentWindow();
94
92
SDL_GLContext oldCtx = SDL_GL_GetCurrentContext();
97
95
SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_ES);
98
96
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 1);
99
97
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 1);