diff --git a/libs/sf2dlib/libsf2d/source/sf2d_draw.c b/libs/sf2dlib/libsf2d/source/sf2d_draw.c index 0e1ed37..bf8f896 100644 --- a/libs/sf2dlib/libsf2d/source/sf2d_draw.c +++ b/libs/sf2dlib/libsf2d/source/sf2d_draw.c @@ -44,7 +44,7 @@ void sf2d_draw_line(int x0, int y0, int x1, int y1, u32 color) (u8[]){2} // number of attributes for each buffer ); - GPU_DrawArray(GPU_TRIANGLE_STRIP, 4); + GPU_DrawArray(GPU_TRIANGLE_STRIP, 0, 4); } void sf2d_draw_rectangle(int x, int y, int w, int h, u32 color) @@ -89,7 +89,7 @@ void sf2d_draw_rectangle(int x, int y, int w, int h, u32 color) (u8[]){2} // number of attributes for each buffer ); - GPU_DrawArray(GPU_TRIANGLE_STRIP, 4); + GPU_DrawArray(GPU_TRIANGLE_STRIP, 0, 4); } void sf2d_draw_rectangle_rotate(int x, int y, int w, int h, u32 color, float rad) @@ -147,7 +147,7 @@ void sf2d_draw_rectangle_rotate(int x, int y, int w, int h, u32 color, float rad (u8[]){2} // number of attributes for each buffer ); - GPU_DrawArray(GPU_TRIANGLE_STRIP, 4); + GPU_DrawArray(GPU_TRIANGLE_STRIP, 0, 4); } void sf2d_draw_fill_circle(int x, int y, int radius, u32 color) @@ -208,5 +208,5 @@ void sf2d_draw_fill_circle(int x, int y, int radius, u32 color) (u8[]){2} // number of attributes for each buffer ); - GPU_DrawArray(GPU_TRIANGLE_FAN, num_segments + 2); + GPU_DrawArray(GPU_TRIANGLE_FAN, 0, num_segments + 2); } diff --git a/libs/sf2dlib/libsf2d/source/sf2d_texture.c b/libs/sf2dlib/libsf2d/source/sf2d_texture.c index af387cf..2dc9fce 100644 --- a/libs/sf2dlib/libsf2d/source/sf2d_texture.c +++ b/libs/sf2dlib/libsf2d/source/sf2d_texture.c @@ -231,7 +231,7 @@ static inline void sf2d_draw_texture_generic(const sf2d_texture *texture, int x, (u8[]){2} // number of attributes for each buffer ); - GPU_DrawArray(GPU_TRIANGLE_STRIP, 4); + GPU_DrawArray(GPU_TRIANGLE_STRIP, 0, 4); } void sf2d_draw_texture(const sf2d_texture *texture, int x, int y) @@ -300,7 +300,7 @@ static inline void sf2d_draw_texture_rotate_hotspot_generic(const sf2d_texture * (u8[]){2} // number of attributes for each buffer ); - GPU_DrawArray(GPU_TRIANGLE_STRIP, 4); + GPU_DrawArray(GPU_TRIANGLE_STRIP, 0, 4); } void sf2d_draw_texture_rotate_hotspot(const sf2d_texture *texture, int x, int y, float rad, float center_x, float center_y) @@ -362,7 +362,7 @@ static inline void sf2d_draw_texture_part_generic(const sf2d_texture *texture, i (u8[]){2} // number of attributes for each buffer ); - GPU_DrawArray(GPU_TRIANGLE_STRIP, 4); + GPU_DrawArray(GPU_TRIANGLE_STRIP, 0, 4); } void sf2d_draw_texture_part(const sf2d_texture *texture, int x, int y, int tex_x, int tex_y, int tex_w, int tex_h) @@ -410,7 +410,7 @@ static inline void sf2d_draw_texture_scale_generic(const sf2d_texture *texture, (u8[]){2} // number of attributes for each buffer ); - GPU_DrawArray(GPU_TRIANGLE_STRIP, 4); + GPU_DrawArray(GPU_TRIANGLE_STRIP, 0, 4); } void sf2d_draw_texture_scale(const sf2d_texture *texture, int x, int y, float x_scale, float y_scale) @@ -460,7 +460,7 @@ static inline void sf2d_draw_texture_part_scale_generic(const sf2d_texture *text (u8[]){2} // number of attributes for each buffer ); - GPU_DrawArray(GPU_TRIANGLE_STRIP, 4); + GPU_DrawArray(GPU_TRIANGLE_STRIP, 0, 4); } void sf2d_draw_texture_part_scale(const sf2d_texture *texture, float x, float y, float tex_x, float tex_y, float tex_w, float tex_h, float x_scale, float y_scale) @@ -520,7 +520,7 @@ static inline void sf2d_draw_texture_part_rotate_scale_generic(const sf2d_textur (u8[]){2} // number of attributes for each buffer ); - GPU_DrawArray(GPU_TRIANGLE_STRIP, 4); + GPU_DrawArray(GPU_TRIANGLE_STRIP, 0, 4); } void sf2d_draw_texture_part_rotate_scale(const sf2d_texture *texture, int x, int y, float rad, int tex_x, int tex_y, int tex_w, int tex_h, float x_scale, float y_scale) @@ -569,7 +569,7 @@ static inline void sf2d_draw_texture_depth_generic(const sf2d_texture *texture, (u8[]){2} // number of attributes for each buffer ); - GPU_DrawArray(GPU_TRIANGLE_STRIP, 4); + GPU_DrawArray(GPU_TRIANGLE_STRIP, 0, 4); } void sf2d_draw_texture_depth(const sf2d_texture *texture, int x, int y, signed short z) @@ -614,7 +614,7 @@ void sf2d_draw_quad_uv(const sf2d_texture *texture, float left, float top, float (u8[]){2} // number of attributes for each buffer ); - GPU_DrawArray(GPU_TRIANGLE_STRIP, 4); + GPU_DrawArray(GPU_TRIANGLE_STRIP, 0, 4); } // Grabbed from Citra Emulator (citra/src/video_core/utils.h)