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
2b0ff6b8
Commit
2b0ff6b8
authored
Oct 23, 2005
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/video_output/opengl.c: hopefully got it right this time.
parent
b1f09108
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
modules/video_output/opengl.c
modules/video_output/opengl.c
+9
-4
No files found.
modules/video_output/opengl.c
View file @
2b0ff6b8
...
...
@@ -188,12 +188,12 @@ static int CreateVout( vlc_object_t *p_this )
p_sys
->
i_index
=
0
;
#ifdef SYS_DARWIN
p_sys
->
i_tex_width
=
p_vout
->
fmt_in
.
i_
visible_
width
;
p_sys
->
i_tex_height
=
p_vout
->
fmt_in
.
i_
visible_
height
;
p_sys
->
i_tex_width
=
p_vout
->
fmt_in
.
i_width
;
p_sys
->
i_tex_height
=
p_vout
->
fmt_in
.
i_height
;
#else
/* A texture must have a size aligned on a power of 2 */
p_sys
->
i_tex_width
=
GetAlignedSize
(
p_vout
->
fmt_in
.
i_
visible_
width
);
p_sys
->
i_tex_height
=
GetAlignedSize
(
p_vout
->
fmt_in
.
i_
visible_
height
);
p_sys
->
i_tex_width
=
GetAlignedSize
(
p_vout
->
fmt_in
.
i_width
);
p_sys
->
i_tex_height
=
GetAlignedSize
(
p_vout
->
fmt_in
.
i_height
);
#endif
msg_Dbg
(
p_vout
,
"Texture size: %dx%d"
,
p_sys
->
i_tex_width
,
...
...
@@ -594,8 +594,13 @@ static void DisplayVideo( vout_thread_t *p_vout, picture_t *p_pic )
/* glTexCoord works differently with GL_TEXTURE_2D and
GL_TEXTURE_RECTANGLE_EXT */
#ifdef SYS_DARWIN
f_width
=
(
float
)
p_vout
->
fmt_out
.
i_visible_width
;
f_height
=
(
float
)
p_vout
->
fmt_out
.
i_visible_height
;
#else
f_width
=
(
float
)
p_vout
->
fmt_out
.
i_visible_width
/
p_sys
->
i_tex_width
;
f_height
=
(
float
)
p_vout
->
fmt_out
.
i_visible_height
/
p_sys
->
i_tex_height
;
#endif
/* Why drawing here and not in Render()? Because this way, the
OpenGL providers can call pf_display to force redraw. Currently,
...
...
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