[Bf-blender-cvs] [41deeceb1bc] temp-gpu-compute-shaders: Remove unneeded changes.
Jeroen Bakker
noreply at git.blender.org
Mon May 10 07:52:33 CEST 2021
Commit: 41deeceb1bcf5f54a50f8a403f67442ba434ef39
Author: Jeroen Bakker
Date: Mon May 10 07:51:30 2021 +0200
Branches: temp-gpu-compute-shaders
https://developer.blender.org/rB41deeceb1bcf5f54a50f8a403f67442ba434ef39
Remove unneeded changes.
===================================================================
M source/blender/gpu/opengl/gl_vertex_buffer.cc
===================================================================
diff --git a/source/blender/gpu/opengl/gl_vertex_buffer.cc b/source/blender/gpu/opengl/gl_vertex_buffer.cc
index 448c165cfee..9242ca090e5 100644
--- a/source/blender/gpu/opengl/gl_vertex_buffer.cc
+++ b/source/blender/gpu/opengl/gl_vertex_buffer.cc
@@ -63,8 +63,6 @@ void GLVertBuf::duplicate_data(VertBuf *dst_)
BLI_assert(GLContext::get() != nullptr);
GLVertBuf *src = this;
GLVertBuf *dst = static_cast<GLVertBuf *>(dst_);
- /* TODO(jbakker): Duplication of device only vertex buffers is not supported yet. */
- BLI_assert((src->usage_ != GPU_USAGE_DEVICE_ONLY) && (dst->usage_ != GPU_USAGE_DEVICE_ONLY));
if (src->vbo_id_ != 0) {
dst->vbo_size_ = src->size_used_get();
More information about the Bf-blender-cvs
mailing list