Add GL prototypes patch

This commit is contained in:
Michael Catanzaro 2022-11-17 09:10:08 -06:00
parent f1d95b90e5
commit c2dad176d5
2 changed files with 16 additions and 0 deletions

13
glext-prototypes.patch Normal file
View File

@ -0,0 +1,13 @@
diff --git a/Source/WebCore/platform/graphics/OpenGLShims.h b/Source/WebCore/platform/graphics/OpenGLShims.h
index 7b194b2a6c26..f0feb6bb1886 100644
--- a/Source/WebCore/platform/graphics/OpenGLShims.h
+++ b/Source/WebCore/platform/graphics/OpenGLShims.h
@@ -20,6 +20,8 @@
#ifndef OpenGLShims_h
#define OpenGLShims_h
+#define GL_GLEXT_PROTOTYPES 1
+
#if OS(WINDOWS)
#include <GL/gl.h>
#include <GLES2/gl2.h>

View File

@ -29,6 +29,9 @@ Source1: https://webkitgtk.org/releases/webkitgtk-%{version}.tar.xz.asc
# $ gpg --export --export-options export-minimal D7FCF61CF9A2DEAB31D81BD3F3D322D0EC4582C3 5AA3BC334FD7E3369E7C77B291C559DBE4C9123B > webkitgtk-keys.gpg
Source2: webkitgtk-keys.gpg
# https://bugs.webkit.org/show_bug.cgi?id=248032
Patch0: glext-prototypes.patch
BuildRequires: bison
BuildRequires: bubblewrap
BuildRequires: cmake