Skip to content

Commit

Permalink
🔧 Do not map buffer coherently
Browse files Browse the repository at this point in the history
  • Loading branch information
Schneegans committed Jan 28, 2025
1 parent 54ffc74 commit cdd6f85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cs-gui/GuiItem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ uint8_t* GuiItem::updateTexture(DrawEvent const& event) {
glBindBuffer(GL_TEXTURE_BUFFER, mTextureBuffer);

size_t bufferSize{4 * sizeof(uint8_t) * event.mWidth * event.mHeight};
GLbitfield flags = GL_MAP_WRITE_BIT | GL_MAP_PERSISTENT_BIT | GL_MAP_COHERENT_BIT;
GLbitfield flags = GL_MAP_WRITE_BIT | GL_MAP_PERSISTENT_BIT;
glBufferStorage(GL_TEXTURE_BUFFER, bufferSize, nullptr, flags);
mBufferData = static_cast<uint8_t*>(glMapBufferRange(GL_TEXTURE_BUFFER, 0, bufferSize, flags));

Expand Down

0 comments on commit cdd6f85

Please sign in to comment.