diff options
author | Vitaliy <numzer0@yandex.ru> | 2023-03-11 17:04:09 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-11 15:04:09 +0100 |
commit | 5a5a7d04b71b576ac9eed1bb58110009f8b46d0b (patch) | |
tree | a1d94ca96df4ddfdbfc2f190b8779a59da2073f4 /examples/AutomatedTest/main.cpp | |
parent | 1d43ea17ca8ee9a01262e9e34c5c89579b97397f (diff) | |
download | irrlicht-5a5a7d04b71b576ac9eed1bb58110009f8b46d0b.tar.xz |
Drop IrrCompileConfig (#163)
Diffstat (limited to 'examples/AutomatedTest/main.cpp')
-rw-r--r-- | examples/AutomatedTest/main.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/examples/AutomatedTest/main.cpp b/examples/AutomatedTest/main.cpp index e724176..0141b2b 100644 --- a/examples/AutomatedTest/main.cpp +++ b/examples/AutomatedTest/main.cpp @@ -10,15 +10,17 @@ static int test_fail = 0; void test_irr_array();
void test_irr_string();
-static video::E_DRIVER_TYPE chooseDriver(const char *arg_)
+static video::E_DRIVER_TYPE chooseDriver(core::stringc arg_)
{
- if (core::stringc(arg_) == "null")
+ if (arg_ == "null")
return video::EDT_NULL;
-
- if (IrrlichtDevice::isDriverSupported(video::EDT_OGLES1))
+ if (arg_ == "ogles1")
return video::EDT_OGLES1;
- if (IrrlichtDevice::isDriverSupported(video::EDT_OGLES2))
+ if (arg_ == "ogles2")
return video::EDT_OGLES2;
+ if (arg_ == "opengl")
+ return video::EDT_OPENGL;
+ std::cerr << "Unknown driver type: " << arg_.c_str() << ". Trying OpenGL." << std::endl;
return video::EDT_OPENGL;
}
|