Fix line drawing

This commit is contained in:
Lionel Flandrin 2016-09-26 02:01:31 +02:00
parent ea10a60a06
commit bb575123e5

View File

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