mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-17 17:05:31 +00:00
Fix framebuffer dimensions in InputStateTest
Also add validation that the framebuffer size matches its attachement size and make a test for it.
This commit is contained in:
committed by
Corentin Wallez
parent
0b186b1fda
commit
de4a3c4c3b
@@ -75,6 +75,14 @@ namespace backend {
|
||||
return nullptr;
|
||||
}
|
||||
usingBackbufferHack = true;
|
||||
continue;
|
||||
}
|
||||
|
||||
// TODO(cwallez@chromium.org): Adjust for the mip-level once that is supported.
|
||||
if (textureView->GetTexture()->GetWidth() != width ||
|
||||
textureView->GetTexture()->GetHeight() != height) {
|
||||
HandleError("Framebuffer size doesn't match attachment size");
|
||||
return nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user