fix: Wasn't missing lib - it's GL/gl.h on linux

This commit is contained in:
jonnypower 2018-04-29 22:57:11 -07:00
parent 67c62bbb89
commit e6ae628b5b
2 changed files with 6 additions and 2 deletions

View file

@ -14,7 +14,6 @@ matrix:
- libc6-i386 - libc6-i386
- libcurl4-openssl-dev:i386 - libcurl4-openssl-dev:i386
- libpng12-dev:i386 - libpng12-dev:i386
- libgl1-mesa-dev:i386
- os: osx - os: osx
compiler: clang compiler: clang

View file

@ -11,10 +11,15 @@
#include <windows.h> #include <windows.h>
#include <GL/gl.h> #include <GL/gl.h>
#else #else
#include <OpenGL/gl.h>
#define NULL 0 #define NULL 0
#endif #endif
#ifdef __APPLE__
#include <OpenGL/gl.h>
#else
#include <GL/gl.h>
#endif
// XXX #include <iostream.h> // XXX #include <iostream.h>
// Emit OpenGL calls to draw the particles. These are drawn with // Emit OpenGL calls to draw the particles. These are drawn with