bindBuffer(int target, Buffer buffer) { // added the correct type on the second param, replace dynamic with Buffer. return gl.glBindBuffer(target, buffer.bufferId); }