fixes courtesy of DyB|Tuna, to fix mac/sdl2 compilation.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4726 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2014-08-18 10:05:10 +00:00
parent c61f77af28
commit 23b7a15980
2 changed files with 4 additions and 0 deletions

View file

@ -104,6 +104,7 @@ static void J_JoystickAdded(int enumid)
}
static struct sdljoy_s *J_DevId(int jid)
{
int i;
for (i = 0; i < MAX_JOYSTICKS; i++)
if (sdljoy[i].joystick && sdljoy[i].id == jid)
return &sdljoy[i];

View file

@ -76,6 +76,9 @@ extern r_config_t r_config;
#elif defined(__MACOSX__)
//apple, you suck.
#include <AGL/agl.h>
#elif defined(__APPLE__)
#include <OpenGL/gl.h> //tuna says use this.
//apple really do suck.
#elif defined(NACL) || defined(FTE_TARGET_WEB)
#include <GLES2/gl2.h>
#define GLclampd GLclampf