Commit 86f8b402 authored by Steve Lhomme's avatar Steve Lhomme Committed by Jean-Baptiste Kempf

opengl: fix the projection aspect ratio

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent d71a8733
......@@ -1532,7 +1532,7 @@ static void DrawWithShaders(vout_display_opengl_t *vgl,
if (vgl->fmt.projection_mode == PROJECTION_MODE_EQUIRECTANGULAR
|| vgl->fmt.projection_mode == PROJECTION_MODE_CUBEMAP_LAYOUT_STANDARD)
{
float sar = vgl->fmt.i_visible_width / vgl->fmt.i_visible_height;
float sar = (float) vgl->fmt.i_visible_width / vgl->fmt.i_visible_height;
getProjectionMatrix(sar, projectionMatrix);
getViewMatrix(viewMatrix);
getYRotMatrix(vgl->f_teta, yRotMatrix);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment