Fix bug with EnsureTextureUsage

This commit is contained in:
Austin Eng 2017-08-14 16:15:39 -04:00 committed by Austin Eng
parent d9568e2ca9
commit dd37e5017f
1 changed files with 1 additions and 1 deletions

View File

@ -388,7 +388,7 @@ namespace backend {
}
bool CommandBufferStateTracker::EnsureTextureUsage(TextureBase* texture, nxt::TextureUsageBit usage) {
if (texture->HasFrozenUsage(nxt::TextureUsageBit::OutputAttachment)) {
if (texture->HasFrozenUsage(usage)) {
return true;
}
if (!IsInternalTextureTransitionPossible(texture, usage)) {