togl: fix MacOS build( fixes #187 )
This commit is contained in:
parent
b14959d827
commit
de1efa823a
2 changed files with 2 additions and 17 deletions
|
@ -28,16 +28,7 @@
|
||||||
//===============================================================================
|
//===============================================================================
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
#include "SDL_opengl.h"
|
||||||
#ifdef OSX
|
|
||||||
#include <OpenGL/gl.h>
|
|
||||||
#include <OpenGL/glext.h>
|
|
||||||
#elif defined(DX_TO_GL_ABSTRACTION)
|
|
||||||
#include <GL/gl.h>
|
|
||||||
#include <GL/glext.h>
|
|
||||||
#else
|
|
||||||
#error
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef GL_EXT_framebuffer_sRGB
|
#ifndef GL_EXT_framebuffer_sRGB
|
||||||
#define GL_FRAMEBUFFER_SRGB_EXT 0x8DB9
|
#define GL_FRAMEBUFFER_SRGB_EXT 0x8DB9
|
||||||
|
|
|
@ -34,13 +34,7 @@
|
||||||
|
|
||||||
#undef PROTECTED_THINGS_ENABLE
|
#undef PROTECTED_THINGS_ENABLE
|
||||||
|
|
||||||
#ifdef OSX
|
#include "SDL_opengl.h"
|
||||||
#include <OpenGL/OpenGL.h>
|
|
||||||
#else
|
|
||||||
#include <GL/gl.h>
|
|
||||||
#include <GL/glext.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "tier0/basetypes.h"
|
#include "tier0/basetypes.h"
|
||||||
#include "tier0/platform.h"
|
#include "tier0/platform.h"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue