From bb575123e52f8bb6d0945f754164e197513ee499 Mon Sep 17 00:00:00 2001 From: Lionel Flandrin Date: Mon, 26 Sep 2016 02:01:31 +0200 Subject: [PATCH] Fix line drawing --- rsx/rsx_lib_gl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rsx/rsx_lib_gl.cpp b/rsx/rsx_lib_gl.cpp index f6182d7a..6aff2f56 100644 --- a/rsx/rsx_lib_gl.cpp +++ b/rsx/rsx_lib_gl.cpp @@ -398,7 +398,7 @@ void rsx_gl_push_line(int16_t p0x, CommandVertex v[2] = { { - {(float)p0x, (float)p0y}, /* position */ + {(float)p0x, (float)p0y, 0., 1.0}, /* position */ {(uint8_t) c0, (uint8_t) (c0 >> 8), (uint8_t) (c0 >> 16)}, /* color */ {0, 0}, /* texture_coord */ {0, 0}, /* texture_page */ @@ -409,7 +409,7 @@ void rsx_gl_push_line(int16_t p0x, semi_transparent, }, { - {(float)p1x, (float)p1y}, /* position */ + {(float)p1x, (float)p1y, 0., 1.0}, /* position */ {(uint8_t) c1, (uint8_t) (c1 >> 8), (uint8_t) (c1 >> 16)}, /* color */ {0, 0}, /* texture_coord */ {0, 0}, /* texture_page */