mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-24 18:02:02 +01:00
graphics: Remove unneeded GL calls
This commit is contained in:
parent
6a34b87a6c
commit
0e19aa558a
@ -274,12 +274,6 @@ type replacePixelsCommand struct {
|
||||
|
||||
// Exec executes the replacePixelsCommand.
|
||||
func (c *replacePixelsCommand) Exec(indexOffsetInBytes int) error {
|
||||
f, err := c.dst.createFramebufferIfNeeded()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
f.setAsViewport()
|
||||
|
||||
// glFlush is necessary on Android.
|
||||
// glTexSubImage2D didn't work without this hack at least on Nexus 5x and NuAns NEO [Reloaded] (#211).
|
||||
opengl.GetContext().Flush()
|
||||
|
Loading…
Reference in New Issue
Block a user