Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
79f2fd00
Commit
79f2fd00
authored
Sep 14, 2015
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
iOS vout: re-use existing OpenGL context if available and compatible
parent
6cc21d0e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
modules/video_output/ios2.m
modules/video_output/ios2.m
+10
-1
No files found.
modules/video_output/ios2.m
View file @
79f2fd00
...
...
@@ -612,7 +612,16 @@ static void ZeroCopyDisplay(vout_display_t *vd, picture_t *pic, subpicture_t *su
layer
.
drawableProperties
=
[
NSDictionary
dictionaryWithObject
:
kEAGLColorFormatRGBA8
forKey
:
kEAGLDrawablePropertyColorFormat
];
layer
.
opaque
=
YES
;
_eaglContext
=
[[
EAGLContext
alloc
]
initWithAPI
:
kEAGLRenderingAPIOpenGLES2
];
/* a client app may have already created a rendering context,
* so re-use it if it is valid */
EAGLContext
*
existingContext
=
[
EAGLContext
currentContext
];
if
(
existingContext
)
{
if
([
existingContext
API
]
==
kEAGLRenderingAPIOpenGLES2
)
_eaglContext
=
[
EAGLContext
currentContext
];
}
if
(
!
_eaglContext
)
_eaglContext
=
[[
EAGLContext
alloc
]
initWithAPI
:
kEAGLRenderingAPIOpenGLES2
];
if
(
unlikely
(
!
_eaglContext
))
return
nil
;
if
(
unlikely
(
!
[
EAGLContext
setCurrentContext
:
_eaglContext
]))
...
...
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