This commit is contained in:
Jeffrey Crowell 2022-05-19 03:13:57 -04:00
commit e4959618fa

View file

@ -684,9 +684,7 @@ static void gfx_opengl_set_use_alpha(bool use_alpha) {
static void gfx_opengl_draw_triangles(float buf_vbo[], size_t buf_vbo_len, size_t buf_vbo_num_tris) {
//printf("flushing %d tris\n", buf_vbo_num_tris);
GL_CHECK(glBufferData(GL_ARRAY_BUFFER, sizeof(float) * buf_vbo_len, buf_vbo, GL_STREAM_DRAW));
//GL_CHECK(glDrawArrays(GL_TRIANGLES, 0, 3 * buf_vbo_num_tris));
GL_CHECK(glDrawArrays(GL_POINTS, 0, buf_vbo_num_tris));
GL_CHECK(glDrawArrays(GL_TRIANGLES, 0, 3 * buf_vbo_num_tris));
}
static void gfx_opengl_init(void) {