We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9cd882 commit e166127Copy full SHA for e166127
templates/EmptyOpenGL_SDL/source/app.d
@@ -18,7 +18,9 @@ int main()
18
19
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 3);
20
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 2);
21
-
+ // This is needed to run on macos
22
+ SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_CORE);
23
+
24
auto window = SDL_CreateWindow("OpenGL 3.2 App", SDL_WINDOWPOS_UNDEFINED,
25
SDL_WINDOWPOS_UNDEFINED, 400, 300, SDL_WINDOW_OPENGL | SDL_WINDOW_SHOWN);
26
if (!window)
0 commit comments