Skip to content

Commit

Permalink
GLPushBuffer: Fix bug when growing, forgot to mark space used in the …
Browse files Browse the repository at this point in the history
…new buffer. Old bug!
  • Loading branch information
hrydgard committed May 24, 2023
1 parent 44513e6 commit f4035a0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Common/GPU/OpenGL/GLMemory.h
Expand Up @@ -124,6 +124,8 @@ class GLPushBuffer {
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_;
}

Expand Down

0 comments on commit f4035a0

Please sign in to comment.