diff options
author | Marek Szuba <marecki@gentoo.org> | 2020-10-13 18:34:36 +0200 |
---|---|---|
committer | Marek Szuba <marecki@gentoo.org> | 2020-10-13 18:47:57 +0200 |
commit | a8dce7e04326898caa8ed79e49516c1b9ebaac9c (patch) | |
tree | f7daff9104ecb7d9d9da7488d76e1c79689bea38 /games-engines/love/files/love-0.8.0-opengl_glext_prototypes.patch | |
parent | games-engines/love: remove old (diff) | |
download | gentoo-a8dce7e04326898caa8ed79e49516c1b9ebaac9c.tar.gz gentoo-a8dce7e04326898caa8ed79e49516c1b9ebaac9c.tar.bz2 gentoo-a8dce7e04326898caa8ed79e49516c1b9ebaac9c.zip |
games-engines/love: fix compilation error in 0.7 and 0.8
Closes: https://bugs.gentoo.org/672558
Signed-off-by: Marek Szuba <marecki@gentoo.org>
Diffstat (limited to 'games-engines/love/files/love-0.8.0-opengl_glext_prototypes.patch')
-rw-r--r-- | games-engines/love/files/love-0.8.0-opengl_glext_prototypes.patch | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/games-engines/love/files/love-0.8.0-opengl_glext_prototypes.patch b/games-engines/love/files/love-0.8.0-opengl_glext_prototypes.patch new file mode 100644 index 000000000000..300bc3383433 --- /dev/null +++ b/games-engines/love/files/love-0.8.0-opengl_glext_prototypes.patch @@ -0,0 +1,54 @@ +diff -ur love-HEAD.orig/src/modules/graphics/opengl/SpriteBatch.cpp love-HEAD/src/modules/graphics/opengl/SpriteBatch.cpp +--- love-HEAD.orig/src/modules/graphics/opengl/SpriteBatch.cpp ++++ love-HEAD/src/modules/graphics/opengl/SpriteBatch.cpp +@@ -18,6 +18,7 @@ + * 3. This notice may not be removed or altered from any source distribution. + **/ + ++#define GL_GLEXT_PROTOTYPES + #include "SpriteBatch.h" + + // STD +--- a/src/modules/graphics/opengl/VertexBuffer.cpp ++++ b/src/modules/graphics/opengl/VertexBuffer.cpp +@@ -18,6 +18,9 @@ + * 3. This notice may not be removed or altered from any source distribution. + **/ + ++#define GL_GLEXT_PROTOTYPES ++#include "SpriteBatch.h" ++ + #include "VertexBuffer.h" + + #include "common/Exception.h" +--- a/src/modules/graphics/opengl/Graphics.cpp ++++ b/src/modules/graphics/opengl/Graphics.cpp +@@ -18,6 +18,7 @@ + * 3. This notice may not be removed or altered from any source distribution. + **/ + ++#define GL_GLEXT_PROTOTYPES + #include <common/config.h> + #include <common/math.h> + #include <common/Vector.h> +--- a/src/modules/graphics/opengl/PixelEffect.cpp ++++ b/src/modules/graphics/opengl/PixelEffect.cpp +@@ -18,6 +18,7 @@ + * 3. This notice may not be removed or altered from any source distribution. + **/ + ++#define GL_GLEXT_PROTOTYPES + #include "PixelEffect.h" + #include "GLee.h" + + +--- a/src/modules/graphics/opengl/Canvas.cpp ++++ b/src/modules/graphics/opengl/Canvas.cpp +@@ -18,6 +18,7 @@ + * 3. This notice may not be removed or altered from any source distribution. + **/ + ++#define GL_GLEXT_PROTOTYPES + #include "Canvas.h" + #include "Graphics.h" + #include <common/Matrix.h> |