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:
Hajime Hoshi
2019-02-16 09:59:53 +09:00
parent fc329bd215
commit 7ff99d3965
3 changed files with 0 additions and 11 deletions

View File

@@ -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
}