Update SGCT repository (closes #1437), VAO hygiene for RenderablePlane

This commit is contained in:
Alexander Bock
2021-05-08 16:57:08 +02:00
parent 54fc94bfaf
commit f74bf97513
2 changed files with 3 additions and 1 deletions

View File

@@ -275,6 +275,7 @@ void RenderablePlane::render(const RenderData& data, RendererTasks&) {
glBindVertexArray(_quad);
glDrawArrays(GL_TRIANGLES, 0, 6);
glBindVertexArray(0);
if (additiveBlending) {
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
@@ -327,6 +328,7 @@ void RenderablePlane::createPlane() {
sizeof(GLfloat) * 6,
reinterpret_cast<void*>(sizeof(GLfloat) * 4)
);
glBindVertexArray(0);
}
} // namespace openspace