Skip to content

Commit 915b3d4

Browse files
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 06f25a1 commit 915b3d4

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

configure.ac

+1-1
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

+3
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)