Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Samo Golež
VLC
Commits
51cdf229
Commit
51cdf229
authored
Apr 18, 2021
by
Niklas Haas
Committed by
Hugo Beauzée-Luyssen
May 09, 2021
Browse files
libplacebo: correctly handle overlays on flipped framebuffers
This affects OpenGL.
parent
9ae6b001
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/video_output/libplacebo/display.c
View file @
51cdf229
...
...
@@ -301,6 +301,11 @@ static void PictureRender(vout_display_t *vd, picture_t *pic,
.
repr
=
vlc_placebo_ColorRepr
(
&
r
->
fmt
),
};
if
(
frame
.
flipped
)
{
overlay
->
rect
.
y0
=
frame
.
fbo
->
params
.
h
-
overlay
->
rect
.
y0
;
overlay
->
rect
.
y1
=
frame
.
fbo
->
params
.
h
-
overlay
->
rect
.
y1
;
}
if
(
!
pl_upload_plane
(
gpu
,
&
overlay
->
plane
,
&
sys
->
overlay_tex
[
i
],
&
subdata
))
{
msg_Err
(
vd
,
"Failed uploading subpicture region!"
);
num_regions
=
i
;
// stop here
...
...
Write
Preview
Supports
Markdown
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