commit 092b67a
uint
·
2026-07-21 16:26:22 +0000 UTC
parent a281cdb
initialise window with opengl
1 files changed,
+1,
-1
+1,
-1
1@@ -21,7 +21,7 @@ void platform_window_create(MGContext* ctx)
2 {
3 ctx->win = (MGWindow*) SDL_CreateWindow(
4 ctx->title, ctx->x, ctx->y, ctx->width, ctx->height,
5- SDL_WINDOW_RESIZABLE|SDL_WINDOW_ALLOW_HIGHDPI
6+ SDL_WINDOW_RESIZABLE|SDL_WINDOW_ALLOW_HIGHDPI|SDL_WINDOW_OPENGL
7 );
8
9 ctx->vbe.gl = SDL_GL_CreateContext(ctx->win);