Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
refs #2527, fixes #774: properly unbind VAO
Browse files Browse the repository at this point in the history
  • Loading branch information
incanus committed Oct 5, 2015
1 parent d42bf35 commit 999b0d2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/mbgl/renderer/painter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,7 @@ void Painter::renderBackground(const StyleLayer &layer_desc) {
patternShader->u_patternmatrix_a = matrixA;
patternShader->u_patternmatrix_b = matrixB;

VertexArrayObject::Unbind();
backgroundBuffer.bind();
patternShader->bind(0);
spriteAtlas->bind(true);
Expand Down

0 comments on commit 999b0d2

Please sign in to comment.