Skip to content

Commit 0ae8524

Browse files
author
Mischa Spiegelmock
authored
SDL link main window, vsync (#269)
* delete unused library references for xcode * Link to 52k preset megapack * SDL: associate GL context with main window, add vsync * version bump
1 parent 5214d37 commit 0ae8524

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
AC_INIT([projectM], [3.1.1-rc4], [[email protected]], [projectM], [https://github.com/projectM-visualizer/projectm/])
1+
AC_INIT([projectM], [3.1.1-rc6], [[email protected]], [projectM], [https://github.com/projectM-visualizer/projectm/])
22
AM_INIT_AUTOMAKE([-Wall -Werror foreign subdir-objects tar-pax])
33

44
m4_ifdef([AM_PROG_AR], [AM_PROG_AR])

src/projectM-sdl/projectM_SDL_main.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,9 @@ srand((int)(time(NULL)));
305305

306306
SDL_SetWindowTitle(win, "projectM Visualizer");
307307

308+
SDL_GL_MakeCurrent(win, glCtx); // associate GL context with main window
309+
SDL_GL_SetSwapInterval(-1); // Enable adaptive vsync
310+
308311
projectMSDL *app;
309312

310313
std::string base_path = DATADIR_PATH;

0 commit comments

Comments
 (0)