graphicsdriver/metal: Fix comments

This commit is contained in:
Hajime Hoshi 2019-02-05 01:59:14 +09:00
parent 672231ddad
commit 19079ae7a2
2 changed files with 2 additions and 1 deletions

View File

@ -29,6 +29,8 @@ import (
//
// static int count(void* obj) {
// // TODO: Don't rely on the number of ref counts. CFGetRetainCount should be used only for debugging.
// // Note that checking whether MTLCommandBuffer's status is completed or not does not work, because the
// // CommandBuffer might still be used even in such situation.
// return CFGetRetainCount(obj);
// }
import "C"

View File

@ -494,7 +494,6 @@ func (d *Driver) Reset() error {
}
func (d *Driver) Draw(indexLen int, indexOffset int, mode graphics.CompositeMode, colorM *affine.ColorM, filter graphics.Filter, address graphics.Address) error {
// TODO: Use address
if err := mainthread.Run(func() error {
// NSView can be changed anytime (probably). Set this everyframe.
cocoaWindow := ns.NewWindow(unsafe.Pointer(d.window))