Skip to content

Commit

Permalink
Fix golangci-lint
Browse files Browse the repository at this point in the history
  • Loading branch information
SpaiR committed May 21, 2022
1 parent 7052102 commit 6a9f176
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/app/render/brush/brush.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ func initAttributes() {
var offset int32
for idx, attr := range attrsList.attrs {
gl.EnableVertexAttribArray(uint32(idx))
gl.VertexAttribPointer(uint32(idx), attr.size, attr.xtype, attr.normalized, attrsList.stride, gl.PtrOffset(int(offset)))
gl.VertexAttribPointerWithOffset(uint32(idx), attr.size, attr.xtype, attr.normalized, attrsList.stride, uintptr(offset))
offset += attr.size * attr.xtypeSize
}

Expand Down
4 changes: 2 additions & 2 deletions src/app/render/brush/draw.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ func Draw(w, h, x, y, z float32) {

switch c.mode {
case mtRect:
gl.DrawElements(gl.TRIANGLES, c.len, gl.UNSIGNED_INT, gl.PtrOffset(c.offset))
gl.DrawElementsWithOffset(gl.TRIANGLES, c.len, gl.UNSIGNED_INT, uintptr(c.offset))
case mtLine:
gl.DrawElements(gl.LINES, c.len, gl.UNSIGNED_INT, gl.PtrOffset(c.offset))
gl.DrawElementsWithOffset(gl.LINES, c.len, gl.UNSIGNED_INT, uintptr(c.offset))
}
}

Expand Down

0 comments on commit 6a9f176

Please sign in to comment.