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:
Corentin Wallez
2017-07-12 13:15:52 -04:00
committed by Corentin Wallez
parent 0b186b1fda
commit de4a3c4c3b
3 changed files with 67 additions and 2 deletions

View File

@@ -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;
}
}