GLPushBuffer: Fix bug when growing, forgot to mark space used in the new buffer. Old bug!

This commit is contained in:
Henrik Rydgård committed 2023-05-24 13:45:10 +02:00
1 parent 44513e6eff
commit f4035a0802
1 file changed
+2
+2
View File
@@ -124,6 +124,8 @@ public:
NextBuffer(numBytes);
*bindOffset = 0;
*buf = buffers_[buf_].buffer;
// Need to mark the allocated range used in the new buffer. How did things work before this?
offset_ = numBytes;
return writePtr_;
}