Fix error in stereo3d side-by-side display

Regression in [0] for side-by-side & top-bottom display.

[0]: e01cadd657
This commit is contained in:
Campbell Barton
2024-09-16 11:38:56 +10:00
parent 5c38eb0d81
commit bf7c52cfd5

View File

@@ -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. */