ports/graphics/freeglut/files/patch-progs-demos-smooth_opengl3_smooth_opengl3.c
Pietro Cerutti 48bbd15b98 - Update to 2.8.0
Changes:

  * There are now callbacks to support multitouch capability.
  * Solaris and OSX support have improved.
  * Fullscreen mode and Game mode behave better.
  * Addition of Visual Studio 2010 projects & solutions.
  * Many bugs have been fixed.

PR:		163829
Submitted by:	Pietro Cerutti <gahr@FreeBSD.org>
2012-02-08 10:32:52 +00:00

18 lines
915 B
C

--- progs/demos/smooth_opengl3/smooth_opengl3.c.orig 2012-01-04 14:38:43.000000000 +0100
+++ progs/demos/smooth_opengl3/smooth_opengl3.c 2012-01-04 14:39:10.000000000 +0100
@@ -98,6 +98,7 @@
#define APIENTRY
#endif
+#ifndef GL_VERSION_1_5
typedef void (APIENTRY *PFNGLGENBUFFERSPROC) (GLsizei n, GLuint *buffers);
typedef void (APIENTRY *PFNGLBINDBUFFERPROC) (GLenum target, GLuint buffer);
typedef void (APIENTRY *PFNGLBUFFERDATAPROC) (GLenum target, ourGLsizeiptr size, const GLvoid *data, GLenum usage);
@@ -117,6 +118,7 @@
typedef void (APIENTRY *PFNGLENABLEVERTEXATTRIBARRAYPROC) (GLuint index);
typedef GLint (APIENTRY *PFNGLGETUNIFORMLOCATIONPROC) (GLuint program, const ourGLchar *name);
typedef void (APIENTRY *PFNGLUNIFORMMATRIX4FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+#endif
PFNGLGENBUFFERSPROC gl_GenBuffers;
PFNGLBINDBUFFERPROC gl_BindBuffer;