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
64275f77
Commit
64275f77
authored
May 25, 2011
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implemented vlc_gl_t::getProcAddress() for glx.
parent
c1763208
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
modules/video_output/xcb/glx.c
modules/video_output/xcb/glx.c
+8
-1
No files found.
modules/video_output/xcb/glx.c
View file @
64275f77
...
@@ -82,6 +82,7 @@ static int Control (vout_display_t *, int, va_list);
...
@@ -82,6 +82,7 @@ static int Control (vout_display_t *, int, va_list);
static
void
Manage
(
vout_display_t
*
);
static
void
Manage
(
vout_display_t
*
);
static
void
SwapBuffers
(
vlc_gl_t
*
gl
);
static
void
SwapBuffers
(
vlc_gl_t
*
gl
);
static
void
*
GetProcAddress
(
vlc_gl_t
*
gl
,
const
char
*
);
static
vout_window_t
*
MakeWindow
(
vout_display_t
*
vd
)
static
vout_window_t
*
MakeWindow
(
vout_display_t
*
vd
)
{
{
...
@@ -362,7 +363,7 @@ static int Open (vlc_object_t *obj)
...
@@ -362,7 +363,7 @@ static int Open (vlc_object_t *obj)
sys
->
gl
.
lock
=
NULL
;
sys
->
gl
.
lock
=
NULL
;
sys
->
gl
.
unlock
=
NULL
;
sys
->
gl
.
unlock
=
NULL
;
sys
->
gl
.
swap
=
SwapBuffers
;
sys
->
gl
.
swap
=
SwapBuffers
;
sys
->
gl
.
getProcAddress
=
NULL
;
sys
->
gl
.
getProcAddress
=
GetProcAddress
;
sys
->
gl
.
sys
=
sys
;
sys
->
gl
.
sys
=
sys
;
if
(
vout_display_opengl_Init
(
&
sys
->
vgl
,
&
vd
->
fmt
,
&
sys
->
gl
))
if
(
vout_display_opengl_Init
(
&
sys
->
vgl
,
&
vd
->
fmt
,
&
sys
->
gl
))
...
@@ -444,6 +445,12 @@ static void SwapBuffers (vlc_gl_t *gl)
...
@@ -444,6 +445,12 @@ static void SwapBuffers (vlc_gl_t *gl)
glXSwapBuffers
(
sys
->
display
,
sys
->
glwin
);
glXSwapBuffers
(
sys
->
display
,
sys
->
glwin
);
}
}
static
void
*
GetProcAddress
(
vlc_gl_t
*
gl
,
const
char
*
name
)
{
(
void
)
gl
;
return
glXGetProcAddress
((
const
GLubyte
*
)
name
);
}
/**
/**
* Return a direct buffer
* Return a direct buffer
*/
*/
...
...
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