Reject unknown offscreen GPU operations #212
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/215"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from R0Y00/Xbox2Windows. Originally posted by RonLogic on 2026-11-21T18:29:07Z.
Summary
A typo such as
offscreen_check.exe warp --bvh-wavefalls through to the triangle renderer. It generates a BMP named--bvh-waveand exits successfully, which can make a script report a test pass when the requested GPU operation never ran.Reject unrecognized
--operations at the draw fallback. The command now prints an argument error and exits with status 2 without writing an image. Positional BMP paths and valid GPU checks keep their existing behavior.Verification
The new regression check failed before the fix because the command created an image and returned 0. All four tests passed after the fix on Windows 11 with an RTX 4070 and WARP.
Refs #166.
AI-assisted. The Windows results were verified locally.