Skip to content

Commit 3345902

Browse files
committed
togl: fix MacOS build( fixes #187 )
1 parent 9586dc9 commit 3345902

File tree

2 files changed

+2
-17
lines changed

2 files changed

+2
-17
lines changed

public/togl/linuxwin/glmgrext.h

+1-10
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,7 @@
2828
//===============================================================================
2929

3030
#pragma once
31-
32-
#ifdef OSX
33-
#include <OpenGL/gl.h>
34-
#include <OpenGL/glext.h>
35-
#elif defined(DX_TO_GL_ABSTRACTION)
36-
#include <GL/gl.h>
37-
#include <GL/glext.h>
38-
#else
39-
#error
40-
#endif
31+
#include "SDL_opengl.h"
4132

4233
#ifndef GL_EXT_framebuffer_sRGB
4334
#define GL_FRAMEBUFFER_SRGB_EXT 0x8DB9

public/togl/rendermechanism.h

+1-7
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,7 @@
3434

3535
#undef PROTECTED_THINGS_ENABLE
3636

37-
#ifdef OSX
38-
#include <OpenGL/OpenGL.h>
39-
#else
40-
#include <GL/gl.h>
41-
#include <GL/glext.h>
42-
#endif
43-
37+
#include "SDL_opengl.h"
4438
#include "tier0/basetypes.h"
4539
#include "tier0/platform.h"
4640

0 commit comments

Comments
 (0)