Assert state on first frame.

This won't matter much for games, but makes tests run more sanely.
This commit is contained in:
Unknown W. Brackets 2014-12-30 15:26:16 -08:00
parent 46717fa266
commit c37d41c88c
2 changed files with 8 additions and 0 deletions

View File

@ -438,6 +438,10 @@ DIRECTX9_GPU::DIRECTX9_GPU()
UpdateCmdInfo();
BuildReportingInfo();
// Some of our defaults are different from hw defaults, let's assert them.
// We restore each frame anyway, but here is convenient for tests.
dxstate.Restore();
}
void DIRECTX9_GPU::UpdateCmdInfo() {

View File

@ -446,6 +446,10 @@ GLES_GPU::GLES_GPU()
BuildReportingInfo();
// Update again after init to be sure of any silly driver problems.
UpdateVsyncInterval(true);
// Some of our defaults are different from hw defaults, let's assert them.
// We restore each frame anyway, but here is convenient for tests.
glstate.Restore();
}
GLES_GPU::~GLES_GPU() {