partial implementation of double buffered render
This commit is contained in:
@ -171,9 +171,7 @@ static void text_destroy_font_data(FontData *font_data) {
|
||||
|
||||
|
||||
static void text_draw_with(FontData* font_data, char* text, Vec2 position, Color color) {
|
||||
VertexBuffer vertex_array = 0;
|
||||
if (vertex_array == 0)
|
||||
vertex_array = create_vertex_buffer();
|
||||
VertexBuffer const vertex_array = get_scratch_vertex_array();
|
||||
|
||||
const size_t len = SDL_strlen(text);
|
||||
|
||||
|
Reference in New Issue
Block a user