mirror of https://github.com/OpenTTD/OpenTTD.git
Fix f0f96e31: [OpenGL] Broken window resizing due to invalid buffer pitch on texture creation.
This commit is contained in:
parent
545ca3d014
commit
df958dc907
|
@ -909,6 +909,8 @@ bool OpenGLBackend::Resize(int w, int h, bool force)
|
||||||
|
|
||||||
_glViewport(0, 0, w, h);
|
_glViewport(0, 0, w, h);
|
||||||
|
|
||||||
|
_glPixelStorei(GL_UNPACK_ROW_LENGTH, pitch);
|
||||||
|
|
||||||
this->vid_buffer = nullptr;
|
this->vid_buffer = nullptr;
|
||||||
if (this->persistent_mapping_supported) {
|
if (this->persistent_mapping_supported) {
|
||||||
_glDeleteBuffers(1, &this->vid_pbo);
|
_glDeleteBuffers(1, &this->vid_pbo);
|
||||||
|
|
Loading…
Reference in New Issue