use TransitionUsageImpl

This commit is contained in:
Kai Ninomiya
2017-08-30 16:15:36 -07:00
committed by Kai Ninomiya
parent 720a5d9366
commit 169809c458
7 changed files with 9 additions and 13 deletions

View File

@@ -144,7 +144,7 @@ namespace backend {
return;
}
TransitionUsageImpl(currentUsage, usage);
currentUsage = usage;
UpdateUsageInternal(usage);
}
void TextureBase::FreezeUsage(nxt::TextureUsageBit usage) {
@@ -154,7 +154,7 @@ namespace backend {
}
allowedUsage = usage;
TransitionUsageImpl(currentUsage, usage);
currentUsage = usage;
UpdateUsageInternal(usage);
frozen = true;
}