opnsense-ports/games/netherearth/files/patch-main.cpp
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

21 lines
577 B
C++

--- main.cpp.orig 2014-06-09 19:39:33.355708525 +0400
+++ main.cpp 2014-06-09 19:40:20.729705674 +0400
@@ -20,6 +20,9 @@
#include "piece3dobject.h"
#include "nether.h"
+#include "GL/gl.h"
+#include "GL/glut.h"
+
/* GLOBAL VARIABLES INITIALIZATION: */
int SCREEN_X=640;
@@ -158,6 +161,8 @@
screen_sfc = initialization((fullscreen ? SDL_FULLSCREEN : 0));
if (screen_sfc==0) return 0;
+ glutInit(&argc, argv);
+
time=init_time=SDL_GetTicks();
while (!quit) {