Cleanup: Sculpt: Remove unnecessary draw debugging code

This commit is contained in:
Hans Goudey
2024-06-06 23:23:24 -04:00
committed by Hans Goudey
parent a9907c4ed9
commit 0d9d6fad41

View File

@@ -803,17 +803,6 @@ static void fill_vbo_bmesh(PBVHVbo &vbo, const PBVH_GPU_Args &args)
GPU_vertbuf_data_alloc(*vbo.vert_buf, vert_count);
}
GPUVertBufRaw access;
GPU_vertbuf_attr_get_raw_data(vbo.vert_buf, 0, &access);
#if 0 /* Enable to fuzz GPU data (to check for over-allocation). */
existing_data = GPU_vertbuf_get_data(vbo.vert_buf);
uchar *c = static_cast<uchar *>(existing_data);
for (int i : IndexRange(vert_count * access.stride)) {
*c++ = i & 255;
}
#endif
if (const CustomRequest *request_type = std::get_if<CustomRequest>(&vbo.request)) {
switch (*request_type) {
case CustomRequest::Position: {