projects
/
primus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2110e85
)
set __GLVND_DISALLOW_PATCHING=1 before loading glvnd libraries
author
Andreas Beckmann
<anbe@debian.org>
Thu, 14 Nov 2024 08:03:23 +0000
(09:03 +0100)
committer
Andreas Beckmann
<anbe@debian.org>
Thu, 14 Nov 2024 08:03:23 +0000
(09:03 +0100)
Gbp-Pq: Name glvnd.patch
libglfork.cpp
patch
|
blob
|
history
diff --git
a/libglfork.cpp
b/libglfork.cpp
index 03f514f975ff52a444fa377b3a1998f691bc1def..270918e21eb71718b8f8b991244dd67416b08554 100644
(file)
--- a/
libglfork.cpp
+++ b/
libglfork.cpp
@@
-165,6
+165,9
@@
struct ContextsInfo: public std::map<GLXContext, ContextInfo> {
struct EarlyInitializer {
EarlyInitializer(const char **adpy_strp, const char **libgla_strp)
{
+ // Allow multiple glvnd libGL.so.1 instances to be loaded into a process
+ // and OpenGL calls dispatched to them depending on context.
+ setenv("__GLVND_DISALLOW_PATCHING", "1", 0);
#ifdef BUMBLEBEE_SOCKET
// Signal the Bumblebee daemon to bring up secondary X
int sock = socket(PF_UNIX, SOCK_STREAM | SOCK_CLOEXEC, 0);