From 41c627fd420a644f0ae86e36f4752e820e2d683c Mon Sep 17 00:00:00 2001 From: Anders Leino Date: Wed, 18 Dec 2024 14:39:17 +0200 Subject: Add slang example tests to CI (#5879) * Examples: Don't proceed if 'initializeBase' fails * Examples: Only access gWindow if it's been initialized * Examples: Free memory from CommandLineToArgvW * Add example run step to CI Lots of examples are still unexpectedly failing, but is one small step towards addressing issue #5520. --- examples/model-viewer/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/model-viewer/main.cpp') diff --git a/examples/model-viewer/main.cpp b/examples/model-viewer/main.cpp index 8b75381be..ecca818f1 100644 --- a/examples/model-viewer/main.cpp +++ b/examples/model-viewer/main.cpp @@ -745,7 +745,7 @@ struct ModelViewer : WindowedAppBase // Result initialize() { - initializeBase("Model Viewer", 1024, 768); + SLANG_RETURN_ON_FAIL(initializeBase("Model Viewer", 1024, 768)); if (!isTestMode()) { gWindow->events.mouseMove = [this](const platform::MouseEventArgs& e) -- cgit v1.2.3