some fixes for OSX

This commit is contained in:
ac-stef
2016-09-08 22:36:46 +02:00
parent 123e2b2b12
commit 588e9f9de8
4 changed files with 7 additions and 3 deletions
Binary file not shown.
+4 -2
View File
@@ -3053,17 +3053,19 @@ typedef ptrdiff_t GLintptr;
typedef ptrdiff_t GLsizeiptr;
#endif
#ifndef GL_ARB_vertex_buffer_object
#if !defined(GL_ARB_vertex_buffer_object) && !defined(__APPLE__)
/* GL types for handling large vertex buffer objects */
typedef ptrdiff_t GLintptrARB;
typedef ptrdiff_t GLsizeiptrARB;
#endif
#ifndef GL_ARB_shader_objects
#ifndef GL_ARB_shader
/* GL types for handling shader object handles and program/shader text */
typedef char GLcharARB; /* native character */
#ifndef __APPLE__
typedef unsigned int GLhandleARB; /* shader object handle */
#endif
#endif
/* GL types for "half" precision (s10e5) float data in host memory */
#ifndef GL_ARB_half_float_pixel
+2
View File
@@ -39,7 +39,9 @@
#ifndef BOT_H
#define BOT_H
#ifndef RELEASE_BUILD
#define RELEASE_BUILD // Set when you want to make a release build
#endif
#include "bot_util.h"
#include "bot_waypoint.h"
+1 -1
View File
@@ -441,7 +441,7 @@ void setupscreen(int &usedcolorbits, int &useddepthbits, int &usedfsaa)
int flags = SDL_RESIZABLE;
#if defined(WIN32) || defined(__APPLE__)
flags = 0;
putenv("SDL_VIDEO_CENTERED=1"); //Center window
putenv(newstring("SDL_VIDEO_CENTERED=1")); //Center window
#endif
if(fullscreen) flags |= SDL_FULLSCREEN;
SDL_Rect **modes = SDL_ListModes(NULL, SDL_OPENGL|flags);