From 105ea0f447d5d4fc250d705d461a80bf244538c0 Mon Sep 17 00:00:00 2001 From: veclavtalica Date: Wed, 26 Jun 2024 15:37:05 +0300 Subject: [PATCH] move to opengl on windows --- Source/Maker/Build/windows-clang.bat | 2 +- Source/Maker/main.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/Maker/Build/windows-clang.bat b/Source/Maker/Build/windows-clang.bat index 9fb4103..84b798d 100644 --- a/Source/Maker/Build/windows-clang.bat +++ b/Source/Maker/Build/windows-clang.bat @@ -1 +1 @@ -clang ../main.c -lkernel32 -luser32 -lshell32 -ld3d11 -ldxgi -lgdi32 -lole32 -DSOKOL_D3D11 -o stfu-maker.exe -O3 +clang ../main.c -lkernel32 -luser32 -lshell32 -lopengl32 -lgdi32 -lole32 -DSOKOL_GLCORE -o stfu-maker.exe -O3 diff --git a/Source/Maker/main.c b/Source/Maker/main.c index d116fc8..7b5c027 100644 --- a/Source/Maker/main.c +++ b/Source/Maker/main.c @@ -210,8 +210,8 @@ sapp_desc sokol_main(int argc, char *argv[]) { .cleanup_cb = cleanup, .event_cb = event, .logger.func = slog_func, - .gl_major_version = 2, - .gl_minor_version = 0, + // .gl_major_version = 2, + // .gl_minor_version = 0, // .swap_interval = 0, .window_title = "stfu-maker", };