1
0
Fork 0

Fix f0f96e31: [OpenGL] Broken window resizing due to invalid buffer pitch on texture creation.

pull/8918/head
Michael Lutz 2021-03-21 21:44:33 +01:00 committed by Patric Stout
parent 70117d3b82
commit 4e51cd1a03
1 changed files with 2 additions and 0 deletions

View File

@ -909,6 +909,8 @@ bool OpenGLBackend::Resize(int w, int h, bool force)
_glViewport(0, 0, w, h);
_glPixelStorei(GL_UNPACK_ROW_LENGTH, pitch);
this->vid_buffer = nullptr;
if (this->persistent_mapping_supported) {
_glDeleteBuffers(1, &this->vid_pbo);