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
fef26a45
Commit
fef26a45
authored
Nov 03, 2014
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
opengl: remove lock/unlock callbacks
They are superseded by makeCurrent() and releaseCurrent().
parent
08875399
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
6 deletions
+10
-6
include/vlc_opengl.h
include/vlc_opengl.h
+10
-0
modules/video_output/egl.c
modules/video_output/egl.c
+0
-2
modules/video_output/glx.c
modules/video_output/glx.c
+0
-2
modules/video_output/msw/glwin32.c
modules/video_output/msw/glwin32.c
+0
-2
No files found.
include/vlc_opengl.h
View file @
fef26a45
...
...
@@ -49,8 +49,10 @@ struct vlc_gl_t
void
(
*
releaseCurrent
)(
vlc_gl_t
*
);
void
(
*
resize
)(
vlc_gl_t
*
,
unsigned
,
unsigned
);
void
(
*
swap
)(
vlc_gl_t
*
);
#ifdef __APPLE__
int
(
*
lock
)(
vlc_gl_t
*
);
void
(
*
unlock
)(
vlc_gl_t
*
);
#endif
void
*
(
*
getProcAddress
)(
vlc_gl_t
*
,
const
char
*
);
};
...
...
@@ -75,13 +77,21 @@ static inline void vlc_gl_ReleaseCurrent(vlc_gl_t *gl)
static
inline
int
vlc_gl_Lock
(
vlc_gl_t
*
gl
)
{
#ifdef __APPLE__
return
(
gl
->
lock
!=
NULL
)
?
gl
->
lock
(
gl
)
:
VLC_SUCCESS
;
#else
(
void
)
gl
;
return
VLC_SUCCESS
;
#endif
}
static
inline
void
vlc_gl_Unlock
(
vlc_gl_t
*
gl
)
{
#ifdef __APPLE__
if
(
gl
->
unlock
!=
NULL
)
gl
->
unlock
(
gl
);
#else
(
void
)
gl
;
#endif
}
static
inline
void
vlc_gl_Resize
(
vlc_gl_t
*
gl
,
unsigned
w
,
unsigned
h
)
...
...
modules/video_output/egl.c
View file @
fef26a45
...
...
@@ -359,8 +359,6 @@ static int Open (vlc_object_t *obj, const struct gl_api *api)
gl
->
resize
=
Resize
;
gl
->
swap
=
SwapBuffers
;
gl
->
getProcAddress
=
GetSymbol
;
gl
->
lock
=
NULL
;
gl
->
unlock
=
NULL
;
return
VLC_SUCCESS
;
error:
...
...
modules/video_output/glx.c
View file @
fef26a45
...
...
@@ -208,8 +208,6 @@ static int Open (vlc_object_t *obj)
gl
->
resize
=
NULL
;
gl
->
swap
=
SwapBuffers
;
gl
->
getProcAddress
=
GetSymbol
;
gl
->
lock
=
NULL
;
gl
->
unlock
=
NULL
;
#ifdef GLX_ARB_get_proc_address
bool
is_swap_interval_set
=
false
;
...
...
modules/video_output/msw/glwin32.c
View file @
fef26a45
...
...
@@ -204,8 +204,6 @@ static int Open(vlc_object_t *object)
#endif
/* */
sys
->
gl
.
lock
=
NULL
;
sys
->
gl
.
unlock
=
NULL
;
sys
->
gl
.
swap
=
Swap
;
sys
->
gl
.
getProcAddress
=
OurGetProcAddress
;
sys
->
gl
.
sys
=
vd
;
...
...
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