Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Foucault <foucault.clem@gmail.com>2020-09-10 16:52:00 +0300
committerClément Foucault <foucault.clem@gmail.com>2020-09-10 16:55:14 +0300
commit48a99fab2b425a30cfc8a44b64ab3a440e08f518 (patch)
tree16e305394828c01d5710cddfd1f9f573005c5add /source/blender/gpu/intern/gpu_immediate.cc
parent72f63ba7e9be0c41dff4c3ed3c4fb527b607dbc3 (diff)
GPUImmediate: Fix wrong resize of immBatchAtMost
Diffstat (limited to 'source/blender/gpu/intern/gpu_immediate.cc')
-rw-r--r--source/blender/gpu/intern/gpu_immediate.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/gpu/intern/gpu_immediate.cc b/source/blender/gpu/intern/gpu_immediate.cc
index 0a488c0dfc0..9c3a88e30f0 100644
--- a/source/blender/gpu/intern/gpu_immediate.cc
+++ b/source/blender/gpu/intern/gpu_immediate.cc
@@ -186,7 +186,7 @@ void immEnd(void)
if (imm->batch) {
if (imm->vertex_idx < imm->vertex_len) {
- GPU_vertbuf_data_resize(imm->batch->verts[0], imm->vertex_len);
+ GPU_vertbuf_data_resize(imm->batch->verts[0], imm->vertex_idx);
/* TODO: resize only if vertex count is much smaller */
}
GPU_batch_set_shader(imm->batch, imm->shader);