mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-10-19 22:34:49 +08:00
graphicsdriver/opengl: Remove glGetError calls
As glGetError doesn't tell where the error happens, this is not useful. Fixes #815
This commit is contained in:
@@ -193,10 +193,6 @@ func (c *context) framebufferPixels(f *framebuffer, width, height int) ([]byte,
|
||||
p := js.TypedArrayOf(pixels)
|
||||
gl.Call("readPixels", 0, 0, width, height, rgba, unsignedByte, p)
|
||||
p.Release()
|
||||
|
||||
if e := gl.Call("getError"); e.Int() != noError.Int() {
|
||||
return nil, errors.New(fmt.Sprintf("opengl: error: %d", e))
|
||||
}
|
||||
return pixels, nil
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user