Remove TODOs

This commit is contained in:
Hajime Hoshi
2015-01-09 12:05:23 +09:00
parent 6453273bac
commit d96de18074
4 changed files with 4 additions and 5 deletions

View File

@@ -89,7 +89,6 @@ func (c *Context) TexturePixels(t Texture, width, height int) ([]uint8, error) {
gl.BindTexture(gl.TEXTURE_2D, t)
gl.ReadPixels(0, 0, width, height, gl.RGBA, gl.UNSIGNED_BYTE, pixels)
if e := gl.GetError(); e != gl.NO_ERROR {
// TODO: Use glu.ErrorString
return nil, errors.New(fmt.Sprintf("gl error: %d", e))
}
return pixels.Interface().([]uint8), nil