Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
1fb1ddf6
Commit
1fb1ddf6
authored
Feb 01, 2014
by
Lukasz Marek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavd/opengl_enc: simplify opengl_load_procedures usage
Signed-off-by:
Lukasz Marek
<
lukasz.m.luki@gmail.com
>
parent
c8275331
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
opengl_enc.c
libavdevice/opengl_enc.c
+11
-6
No files found.
libavdevice/opengl_enc.c
View file @
1fb1ddf6
...
...
@@ -459,6 +459,11 @@ static int av_cold opengl_load_procedures(OpenGLContext *opengl)
{
FFOpenGLFunctions
*
procs
=
&
opengl
->
glprocs
;
#if HAVE_SDL
if
(
!
opengl
->
no_window
)
return
opengl_sdl_load_procedures
(
opengl
);
#endif
procs
->
glActiveTexture
=
glActiveTexture
;
procs
->
glGenBuffers
=
glGenBuffers
;
procs
->
glDeleteBuffers
=
glDeleteBuffers
;
...
...
@@ -504,6 +509,11 @@ static int av_cold opengl_load_procedures(OpenGLContext *opengl)
return AVERROR(ENOSYS); \
}
#if HAVE_SDL
if
(
!
opengl
->
no_window
)
return
opengl_sdl_load_procedures
(
opengl
);
#endif
LOAD_OPENGL_FUN
(
glActiveTexture
,
FF_PFNGLACTIVETEXTUREPROC
)
LOAD_OPENGL_FUN
(
glGenBuffers
,
FF_PFNGLGENBUFFERSPROC
)
LOAD_OPENGL_FUN
(
glDeleteBuffers
,
FF_PFNGLDELETEBUFFERSPROC
)
...
...
@@ -1064,12 +1074,7 @@ static av_cold int opengl_write_header(AVFormatContext *h)
goto
fail
;
}
if
(
!
opengl
->
no_window
)
{
#if HAVE_SDL
if
((
ret
=
opengl_sdl_load_procedures
(
opengl
))
<
0
)
goto
fail
;
#endif
}
else
if
((
ret
=
opengl_load_procedures
(
opengl
))
<
0
)
if
((
ret
=
opengl_load_procedures
(
opengl
))
<
0
)
goto
fail
;
opengl_fill_color_map
(
opengl
);
...
...
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