Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
801fcb35
Commit
801fcb35
authored
Feb 19, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
EGL: need to load libGL too...
Why can't Mesa people link their shared objects correctly!?
parent
c29d9ed6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
modules/video_output/egl.c
modules/video_output/egl.c
+6
-3
No files found.
modules/video_output/egl.c
View file @
801fcb35
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
* @brief EGL video output module
* @brief EGL video output module
*/
*/
/*****************************************************************************
/*****************************************************************************
* Copyright © 2010 Rémi Denis-Courmont
* Copyright © 2010
-2011
Rémi Denis-Courmont
*
*
* This library is free software; you can redistribute it and/or
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* modify it under the terms of the GNU Lesser General Public License
...
@@ -161,6 +161,7 @@ static int Open (vlc_object_t *obj)
...
@@ -161,6 +161,7 @@ static int Open (vlc_object_t *obj)
sys
->
gl
.
sys
=
NULL
;
sys
->
gl
.
sys
=
NULL
;
sys
->
pool
=
NULL
;
sys
->
pool
=
NULL
;
#ifdef __unix__
/* XXX Explicit hack!
/* XXX Explicit hack!
* Mesa EGL plugins (as of version 7.8.2) are not properly linked to
* Mesa EGL plugins (as of version 7.8.2) are not properly linked to
* libEGL.so even though they import some of its symbols. This is
* libEGL.so even though they import some of its symbols. This is
...
@@ -168,8 +169,10 @@ static int Open (vlc_object_t *obj)
...
@@ -168,8 +169,10 @@ static int Open (vlc_object_t *obj)
* RTLD_LOCAL so that they do not pollute the namespace. Then the
* RTLD_LOCAL so that they do not pollute the namespace. Then the
* libEGL symbols are not visible to EGL plugins, and the run-time
* libEGL symbols are not visible to EGL plugins, and the run-time
* linker exits the whole process. */
* linker exits the whole process. */
#ifdef __unix__
if
(
dlopen
(
"libEGL.so"
,
RTLD_GLOBAL
|
RTLD_NOW
)
==
NULL
)
dlopen
(
"libEGL.so"
,
RTLD_GLOBAL
|
RTLD_LAZY
);
msg_Warn
(
gl
,
"libEGL cannot be loaded. Process might crash."
);
if
(
dlopen
(
"libGL.so"
,
RTLD_GLOBAL
|
RTLD_NOW
)
==
NULL
)
msg_Warn
(
gl
,
"libGL cannot be loaded. Process might crash."
);
#endif
#endif
EGLint
major
,
minor
;
EGLint
major
,
minor
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment