Merge branch 'blender-v3.4-release'

This commit is contained in:
Jeroen Bakker 2022-11-15 08:08:17 +01:00
commit 91215ace72
1 changed files with 4 additions and 0 deletions

View File

@ -1051,6 +1051,10 @@ bool GLShader::transform_feedback_enable(GPUVertBuf *buf_)
GLVertBuf *buf = static_cast<GLVertBuf *>(unwrap(buf_));
if (buf->vbo_id_ == 0) {
buf->bind();
}
BLI_assert(buf->vbo_id_ != 0);
glBindBufferBase(GL_TRANSFORM_FEEDBACK_BUFFER, 0, buf->vbo_id_);