summaryrefslogtreecommitdiff
path: root/libre-multilib/lib32-mesa/0002-fixup-EGL-Implement-the-libglvnd-interface-for-EGL-v.patch
blob: f3b0f99146765102d09fabd0524477e0d7b43cb0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
From 2d4094c2caad6cef2f5544b3966fcc37ceb32036 Mon Sep 17 00:00:00 2001
From: Kyle Brenneman <kbrenneman@nvidia.com>
Date: Thu, 5 Jan 2017 14:29:47 -0700
Subject: [PATCH 2/2] fixup! EGL: Implement the libglvnd interface for EGL (v2)

---
 src/egl/generate/eglFunctionList.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/egl/generate/eglFunctionList.py b/src/egl/generate/eglFunctionList.py
index b19b5f7193..80cb83437c 100644
--- a/src/egl/generate/eglFunctionList.py
+++ b/src/egl/generate/eglFunctionList.py
@@ -53,12 +53,14 @@ method values:
     Select the vendor that owns the current context.
 """
 
-def _eglFunc(name, method, static=False, public=False, inheader=None, prefix="", extension=None, retval=None):
+def _eglFunc(name, method, static=None, public=False, inheader=None, prefix="dispatch_", extension=None, retval=None):
     """
     A convenience function to define an entry in the EGL function list.
     """
+    if static is None:
+        static = (not public and method != "custom")
     if inheader is None:
-        inheader = (not public)
+        inheader = (not static)
     values = {
         "method" : method,
         "prefix" : prefix,
-- 
2.11.0