re-add hard coded window dims
Some checks failed
studiorailgun/Renderer/pipeline/head There was a failure building this commit

This commit is contained in:
austin 2024-08-22 18:38:24 -04:00
parent 67700fdb47
commit 4ffbc87c48
2 changed files with 4 additions and 2 deletions

View File

@ -20,6 +20,8 @@ public abstract class RenderingTestTemplate {
@IntegrationSetup @IntegrationSetup
public void initEngine(){ public void initEngine(){
Globals.WINDOW_DECORATED = false; Globals.WINDOW_DECORATED = false;
Globals.WINDOW_WIDTH = 1920;
Globals.WINDOW_HEIGHT = 1080;
TestEngineUtils.initGraphicalEngine(); TestEngineUtils.initGraphicalEngine();
} }

View File

@ -37,11 +37,11 @@ public class TestRenderingUtils {
if(testData.getWidth() != screenshot.getWidth()){ if(testData.getWidth() != screenshot.getWidth()){
onFailure.run(); onFailure.run();
} }
assertEquals(testData.getHeight(), screenshot.getHeight()); assertEquals(screenshot.getHeight(), testData.getHeight());
if(testData.getWidth() != screenshot.getWidth()){ if(testData.getWidth() != screenshot.getWidth()){
onFailure.run(); onFailure.run();
} }
assertEquals(testData.getHeight(), screenshot.getHeight()); assertEquals(screenshot.getHeight(), testData.getHeight());
//pixel-by-pixel check //pixel-by-pixel check
for(int x = 0; x < testData.getWidth(); x++){ for(int x = 0; x < testData.getWidth(); x++){