mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-10-17 05:20:54 +08:00
graphicsdriver/opengl: Fix suspicious GL function calls
Before this change, the pixel object buffer is unbound just after getting a pointer by glMapBuffer. This seemed suspicious. This change fixes to do all pixel manipulations once between glMapBuffer and glUnmapBuffer without changing a bound buffer. This might fix a wrong rendering on some machines, but I am not sure. Updates #993
This commit is contained in:
@@ -265,8 +265,6 @@ func (d *Driver) useProgram(mode driver.CompositeMode, colorM *affine.ColorM, fi
|
||||
panic("source image is not set")
|
||||
}
|
||||
|
||||
thePBOState.ensurePBOUnmapped()
|
||||
|
||||
if err := destination.setViewport(); err != nil {
|
||||
return err
|
||||
}
|
||||
|
Reference in New Issue
Block a user