From 3345902612243b51700bfafc3b9c0a2121398a2e Mon Sep 17 00:00:00 2001 From: nillerusr Date: Fri, 3 Feb 2023 02:27:22 +0300 Subject: [PATCH] togl: fix MacOS build( fixes #187 ) --- public/togl/linuxwin/glmgrext.h | 11 +---------- public/togl/rendermechanism.h | 8 +------- 2 files changed, 2 insertions(+), 17 deletions(-) diff --git a/public/togl/linuxwin/glmgrext.h b/public/togl/linuxwin/glmgrext.h index 393942a7..c9d53772 100644 --- a/public/togl/linuxwin/glmgrext.h +++ b/public/togl/linuxwin/glmgrext.h @@ -28,16 +28,7 @@ //=============================================================================== #pragma once - -#ifdef OSX -#include -#include -#elif defined(DX_TO_GL_ABSTRACTION) -#include -#include -#else -#error -#endif +#include "SDL_opengl.h" #ifndef GL_EXT_framebuffer_sRGB #define GL_FRAMEBUFFER_SRGB_EXT 0x8DB9 diff --git a/public/togl/rendermechanism.h b/public/togl/rendermechanism.h index 252095af..724485c1 100644 --- a/public/togl/rendermechanism.h +++ b/public/togl/rendermechanism.h @@ -34,13 +34,7 @@ #undef PROTECTED_THINGS_ENABLE -#ifdef OSX -#include -#else -#include -#include -#endif - +#include "SDL_opengl.h" #include "tier0/basetypes.h" #include "tier0/platform.h"