From bf7c52cfd522e94e5ee8dffe6f6ccf653c465d7b Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 16 Sep 2024 11:38:56 +1000 Subject: [PATCH] Fix error in stereo3d side-by-side display Regression in [0] for side-by-side & top-bottom display. [0]: e01cadd657c76267266546781703df107c55f83a --- source/blender/windowmanager/intern/wm_stereo.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/blender/windowmanager/intern/wm_stereo.cc b/source/blender/windowmanager/intern/wm_stereo.cc index ab930431b00..42ecc7c819e 100644 --- a/source/blender/windowmanager/intern/wm_stereo.cc +++ b/source/blender/windowmanager/intern/wm_stereo.cc @@ -68,7 +68,7 @@ void wm_stereo3d_draw_sidebyside(wmWindow *win, int view) /* `wmOrtho` for the screen has this same offset. */ const float halfx = GLA_PIXEL_OFS / sizex; - const float halfy = GLA_PIXEL_OFS / sizex; + const float halfy = GLA_PIXEL_OFS / sizey; /* Texture is already bound to GL_TEXTURE0 unit. */ @@ -112,7 +112,7 @@ void wm_stereo3d_draw_topbottom(wmWindow *win, int view) /* `wmOrtho` for the screen has this same offset. */ const float halfx = GLA_PIXEL_OFS / sizex; - const float halfy = GLA_PIXEL_OFS / sizex; + const float halfy = GLA_PIXEL_OFS / sizey; /* Texture is already bound to GL_TEXTURE0 unit. */