fix: run.bat 删除旧截图避免假通过

- 运行前删除旧的 screenshot.ppm
- 确保测试使用实际生成的新截图
This commit is contained in:
2026-03-15 18:31:51 +08:00
parent 88cd65d082
commit 95fd1400bc

View File

@@ -1,6 +1,7 @@
@echo off
cd /d "%~dp0..\..\..\..\build\tests\D3D12\Debug"
if exist "D3D12_engine_log.txt" del "D3D12_engine_log.txt"
if exist "screenshot.ppm" del "screenshot.ppm"
D3D12.exe
python "%~dp0compare_ppm.py" "screenshot.ppm" "GT.ppm" 5
pause