Skip to content

Commit

Permalink
Use GL_STREAM_DRAW
Browse files Browse the repository at this point in the history
  • Loading branch information
neville committed Nov 10, 2016
1 parent 21b309f commit df4107b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gfx/drivers_shader/shader_glsl.c
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ static void gl_glsl_set_vbo(GLfloat **buffer, size_t *buffer_elems,
memcpy(*buffer, data, elems * sizeof(GLfloat));
#endif
glBufferData(GL_ARRAY_BUFFER, elems * sizeof(GLfloat),
data, GL_STATIC_DRAW);
data, GL_STREAM_DRAW);
*buffer_elems = elems;
}
}
Expand Down

0 comments on commit df4107b

Please sign in to comment.