mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 18:58:54 +01:00
Revert "graphicsdriver/opengl: Call glFinish before glReadPixels"
This reverts commit04dc1faa9c
. Reason: True fix for #814 is82178794c3
This commit is contained in:
parent
82178794c3
commit
0bf911905a
@ -161,10 +161,7 @@ func (c *context) bindFramebufferImpl(f framebufferNative) {
|
||||
func (c *context) framebufferPixels(f *framebuffer, width, height int) ([]byte, error) {
|
||||
var pixels []byte
|
||||
_ = mainthread.Run(func() error {
|
||||
// glFlush is not enough. glFinish can be required before glReadPixels on some environments like
|
||||
// Travis CI (#814)
|
||||
// See also: https://forums.khronos.org/showthread.php/62741
|
||||
gl.Finish()
|
||||
gl.Flush()
|
||||
return nil
|
||||
})
|
||||
c.bindFramebuffer(f.native)
|
||||
|
@ -142,7 +142,7 @@ func (c *context) bindFramebufferImpl(f framebufferNative) {
|
||||
|
||||
func (c *context) framebufferPixels(f *framebuffer, width, height int) ([]byte, error) {
|
||||
gl := c.gl
|
||||
gl.Finish()
|
||||
gl.Flush()
|
||||
|
||||
c.bindFramebuffer(f.native)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user