Get actual backend type from the engine (#9171)

This commit is contained in:
Doris Wu
2025-09-03 06:27:35 +08:00
committed by GitHub
parent 58dc6715c9
commit ae5ebda397

View File

@@ -115,6 +115,7 @@ int main(int argc, char *argv[]) {
// if we are single-threaded. But we can't create the Filament objects
// until after we have created the engine.
auto engine = Engine::create(kBackend);
kBackend = engine->getBackend();
for (auto &w : windows) {
setup_window(w, engine);