mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 18:58:54 +01:00
graphicsdriver/metal: Fix comments
This commit is contained in:
parent
e565433fb0
commit
52fcab7a90
@ -895,8 +895,8 @@ func (i *Image) IsInvalidated() bool {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (i *Image) syncTexture() {
|
func (i *Image) syncTexture() {
|
||||||
// Calling SynchronizeTexturein mtl.m is ignored on iOS, but it looks like committing BliCommandEncoder is
|
// Calling SynchronizeTexture is ignored on iOS (see mtl.m), but it looks like committing BliCommandEncoder
|
||||||
// necessary (#1337).
|
// is necessary (#1337).
|
||||||
i.graphics.t.Call(func() error {
|
i.graphics.t.Call(func() error {
|
||||||
if i.graphics.cb != (mtl.CommandBuffer{}) {
|
if i.graphics.cb != (mtl.CommandBuffer{}) {
|
||||||
panic("metal: command buffer must be empty at syncTexture: flushIfNeeded is not called yet?")
|
panic("metal: command buffer must be empty at syncTexture: flushIfNeeded is not called yet?")
|
||||||
|
Loading…
Reference in New Issue
Block a user