Changeset - r25067:aed3af797bc9
[Not reviewed]
master
0 1 0
Michael Lutz - 3 years ago 2021-03-21 20:44:33
michi@icosahedron.de
Fix f0f96e31: [OpenGL] Broken window resizing due to invalid buffer pitch on texture creation.
1 file changed with 2 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/video/opengl.cpp
Show inline comments
 
@@ -909,6 +909,8 @@ bool OpenGLBackend::Resize(int w, int h,
 

	
 
	_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);
0 comments (0 inline, 0 general)