Fix EnsureTextureUsage not using usage
This commit is contained in:
parent
296951df60
commit
98614a02d3
|
@ -381,10 +381,10 @@ namespace backend {
|
|||
if (texture->HasFrozenUsage(nxt::TextureUsageBit::OutputAttachment)) {
|
||||
return true;
|
||||
}
|
||||
if (!IsInternalTextureTransitionPossible(texture, nxt::TextureUsageBit::OutputAttachment)) {
|
||||
if (!IsInternalTextureTransitionPossible(texture, usage)) {
|
||||
return false;
|
||||
}
|
||||
mostRecentTextureUsages[texture] = nxt::TextureUsageBit::OutputAttachment;
|
||||
mostRecentTextureUsages[texture] = usage;
|
||||
texturesTransitioned.insert(texture);
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue