mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 11:18:54 +01:00
Revert "graphics: Call glFlush after glTexSubImage2D for MacBook Pro"
This reverts commit 7f5719fadd
.
Reason: This didn't change the situation
This commit is contained in:
parent
bbed2ae8a0
commit
1571e04753
@ -149,17 +149,7 @@ func (q *commandQueue) Flush() error {
|
||||
}
|
||||
numc := len(g)
|
||||
indexOffsetInBytes := 0
|
||||
var lastC command
|
||||
for _, c := range g {
|
||||
// On MacBook Pro (2013 Late?), glTexSubImage2D might not be finished
|
||||
// before the next different comand. Call glFlush explicitly.
|
||||
if _, ok := lastC.(*replacePixelsCommand); ok {
|
||||
if _, ok := c.(*replacePixelsCommand); !ok {
|
||||
opengl.GetContext().Flush()
|
||||
}
|
||||
}
|
||||
lastC = c
|
||||
|
||||
if err := c.Exec(indexOffsetInBytes); err != nil {
|
||||
return err
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user