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
bc8f690a
Commit
bc8f690a
authored
Mar 07, 2014
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
glspectrum: bind GL context when needed
parent
3ed9eb36
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
modules/visualization/glspectrum.c
modules/visualization/glspectrum.c
+4
-0
No files found.
modules/visualization/glspectrum.c
View file @
bc8f690a
...
...
@@ -403,7 +403,9 @@ static void *Thread( void *p_data )
vlc_sem_post
(
&
p_sys
->
ready
);
vlc_gl_MakeCurrent
(
gl
);
initOpenGLScene
();
vlc_gl_ReleaseCurrent
(
gl
);
float
height
[
NB_BANDS
]
=
{
0
};
...
...
@@ -413,6 +415,7 @@ static void *Thread( void *p_data )
int
canc
=
vlc_savecancel
();
vlc_gl_MakeCurrent
(
gl
);
/* Manage the events */
vout_ManageDisplay
(
p_sys
->
p_vd
,
true
);
if
(
p_sys
->
p_vd
->
cfg
->
display
.
width
!=
i_last_width
||
...
...
@@ -548,6 +551,7 @@ static void *Thread( void *p_data )
release:
window_close
(
&
wind_ctx
);
fft_close
(
p_state
);
vlc_gl_ReleaseCurrent
(
gl
);
block_Release
(
block
);
vlc_restorecancel
(
canc
);
}
...
...
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