Skip to content

Commit dd7f03e

Browse files
committed
FIX: using SwapBuffers instead of wglSwapBuffers and adding opengl.lib into systems definition for not VS builds
1 parent faf6715 commit dd7f03e

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/os/win32/host-event.c

+1-3
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,7 @@
4949

5050
//OpenGL
5151
#pragma comment(lib, "opengl32")
52-
#pragma comment(lib, "glu32")
5352
#include <gl/gl.h>
54-
#include <gl/glu.h>
5553

5654
//-- Not currently used:
5755
//#include <windowsx.h>
@@ -544,7 +542,7 @@ static REBINT Check_Modifiers(REBINT flags)
544542
glEnd();
545543
glFlush();
546544

547-
wglSwapBuffers(hdc);
545+
SwapBuffers(hdc);
548546
// wglMakeCurrent(hdc, 0);
549547
EndPaint(hwnd, &ps);
550548
return FALSE;

src/tools/systems.r

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ linker-flags: [
7474
LLOG: "-llog" ; on Android, link with liblog.so
7575
ARC: "-arch i386" ; x86 32 bit architecture (OSX)
7676
M32: "-m32" ; use 32-bit memory model (Linux x64)
77-
W32: "-lwsock32 -lcomdlg32 -lgdi32 -lwinmm -lComctl32 -lUxTheme"
77+
W32: "-lwsock32 -lcomdlg32 -lgdi32 -lwinmm -lComctl32 -lUxTheme -lopengl32"
7878
WIN: "-mwindows" ; build as Windows GUI binary
7979
CON: "-mconsole" ; build as Windows Console binary
8080
S4M: "-Wl,--stack=4194300"

0 commit comments

Comments
 (0)