Fix bug with EnsureTextureUsage
This commit is contained in:
parent
d9568e2ca9
commit
dd37e5017f
|
@ -388,7 +388,7 @@ namespace backend {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CommandBufferStateTracker::EnsureTextureUsage(TextureBase* texture, nxt::TextureUsageBit usage) {
|
bool CommandBufferStateTracker::EnsureTextureUsage(TextureBase* texture, nxt::TextureUsageBit usage) {
|
||||||
if (texture->HasFrozenUsage(nxt::TextureUsageBit::OutputAttachment)) {
|
if (texture->HasFrozenUsage(usage)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (!IsInternalTextureTransitionPossible(texture, usage)) {
|
if (!IsInternalTextureTransitionPossible(texture, usage)) {
|
||||||
|
|
Loading…
Reference in New Issue