opengl: Remove 'normalize' argument from VertexAttribPointer

This commit is contained in:
Hajime Hoshi
2017-12-03 19:21:59 +09:00
parent 2e1e4adb84
commit eeea25f202
5 changed files with 32 additions and 35 deletions

View File

@@ -362,10 +362,10 @@ func (c *Context) getAttribLocationImpl(p Program, location string) attribLocati
return attribLocation(gl.GetAttribLocation(p.Object, location))
}
func (c *Context) VertexAttribPointer(p Program, location string, size int, dataType DataType, normalize bool, stride int, offset int) {
func (c *Context) VertexAttribPointer(p Program, location string, size int, dataType DataType, stride int, offset int) {
gl := c.gl
l := c.locationCache.GetAttribLocation(c, p, location)
gl.VertexAttribPointer(int(l), size, int(dataType), normalize, stride, offset)
gl.VertexAttribPointer(int(l), size, int(dataType), false, stride, offset)
}
func (c *Context) EnableVertexAttribArray(p Program, location string) {