Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
7f21b02a
Commit
7f21b02a
authored
Nov 05, 2013
by
Adrien Maglo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
EGL: destroy the created EGLSurface on Close()
parent
cafdd029
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
modules/video_output/egl.c
modules/video_output/egl.c
+5
-0
No files found.
modules/video_output/egl.c
View file @
7f21b02a
...
...
@@ -152,6 +152,7 @@ static int Open (vlc_object_t *obj, const struct gl_api *api)
gl
->
sys
=
sys
;
sys
->
display
=
EGL_NO_DISPLAY
;
sys
->
surface
=
EGL_NO_SURFACE
;
#ifdef USE_PLATFORM_X11
sys
->
x11
=
NULL
;
...
...
@@ -327,7 +328,11 @@ static void Close (vlc_object_t *obj)
vlc_gl_sys_t
*
sys
=
gl
->
sys
;
if
(
sys
->
display
!=
EGL_NO_DISPLAY
)
{
if
(
sys
->
surface
!=
EGL_NO_SURFACE
)
eglDestroySurface
(
sys
->
display
,
sys
->
surface
);
eglTerminate
(
sys
->
display
);
}
#ifdef USE_PLATFORM_X11
if
(
sys
->
x11
!=
NULL
)
XCloseDisplay
(
sys
->
x11
);
...
...
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