public void bindBuffer(int target, WebGLBuffer buffer) { var bufferId = (int)(buffer != null ? buffer.Value : 0); #if _DEBUG Log.Info(string.Format("bindBuffer {0} {1}", target, bufferId)); #endif #if GLEW_STATIC Gl.glBindBuffer(target, bufferId); #else Gl.__glewBindBuffer(target, bufferId); #endif this.ErrorTest(); }