X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fcore%2Fvertexsetup.cpp;fp=source%2Fcore%2Fvertexsetup.cpp;h=7a24da7350b5f332a1e2aaaaa5c80a29fc7646e8;hp=81d2261e6aa78b55b3240e231ea72b25232bea60;hb=7b569bbfcfb65d8d88b47ac42ee1df6a7d27e784;hpb=bea2bcf1aa353b1dd8d1728931ef0508677bd2c6 diff --git a/source/core/vertexsetup.cpp b/source/core/vertexsetup.cpp index 81d2261e..7a24da73 100644 --- a/source/core/vertexsetup.cpp +++ b/source/core/vertexsetup.cpp @@ -148,7 +148,10 @@ void VertexSetup::update() const void VertexSetup::update_vertex_array(const VertexArray &array, unsigned binding, unsigned divisor, bool direct) const { if(!direct) + { + Buffer::unbind_scratch(); glBindBuffer(GL_ARRAY_BUFFER, array.get_buffer()->get_id()); + } const VertexFormat &fmt = array.get_format(); unsigned stride = fmt.stride();