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
a27daf20
Commit
a27daf20
authored
Jul 09, 2013
by
Nicolas Bertrand
Committed by
Jean-Baptiste Kempf
Jul 09, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OpenGL: take planes in account in DrawWithShaders
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
47d20839
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
modules/video_output/opengl.c
modules/video_output/opengl.c
+10
-5
No files found.
modules/video_output/opengl.c
View file @
a27daf20
...
...
@@ -923,10 +923,15 @@ static void DrawWithShaders(vout_display_opengl_t *vgl,
{
vgl
->
UseProgram
(
vgl
->
program
[
program
]);
if
(
program
==
0
)
{
if
(
vgl
->
chroma
->
plane_count
==
3
)
{
vgl
->
Uniform4fv
(
vgl
->
GetUniformLocation
(
vgl
->
program
[
0
],
"Coefficient"
),
4
,
vgl
->
local_value
);
vgl
->
Uniform1i
(
vgl
->
GetUniformLocation
(
vgl
->
program
[
0
],
"Texture0"
),
0
);
vgl
->
Uniform1i
(
vgl
->
GetUniformLocation
(
vgl
->
program
[
0
],
"Texture1"
),
1
);
vgl
->
Uniform1i
(
vgl
->
GetUniformLocation
(
vgl
->
program
[
0
],
"Texture2"
),
2
);
}
else
if
(
vgl
->
chroma
->
plane_count
==
1
)
{
vgl
->
Uniform1i
(
vgl
->
GetUniformLocation
(
vgl
->
program
[
0
],
"Texture0"
),
0
);
}
}
else
{
vgl
->
Uniform1i
(
vgl
->
GetUniformLocation
(
vgl
->
program
[
1
],
"Texture0"
),
0
);
vgl
->
Uniform4f
(
vgl
->
GetUniformLocation
(
vgl
->
program
[
1
],
"FillColor"
),
1
.
0
f
,
1
.
0
f
,
1
.
0
f
,
1
.
0
f
);
...
...
@@ -1000,7 +1005,7 @@ int vout_display_opengl_Display(vout_display_opengl_t *vgl,
}
#ifdef SUPPORTS_SHADERS
if
(
vgl
->
program
[
0
]
&&
vgl
->
chroma
->
plane_count
==
3
)
if
(
vgl
->
program
[
0
]
&&
(
vgl
->
chroma
->
plane_count
==
3
||
vgl
->
chroma
->
plane_count
==
1
)
)
DrawWithShaders
(
vgl
,
left
,
top
,
right
,
bottom
,
0
);
else
if
(
vgl
->
program
[
1
]
&&
vgl
->
chroma
->
plane_count
==
1
)
DrawWithShaders
(
vgl
,
left
,
top
,
right
,
bottom
,
1
);
...
...
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