Restore isDriverSupported, but in a cpp file

This commit is contained in:
numzero
2023-03-06 14:10:05 +03:00
parent 6de0afa8b3
commit 5f76be9380
2 changed files with 23 additions and 1 deletions

View File

@ -113,6 +113,26 @@ namespace core
namespace video
{
SMaterial IdentityMaterial;
extern "C" IRRLICHT_API bool IRRCALLCONV isDriverSupported(E_DRIVER_TYPE driver)
{
switch (driver) {
case EDT_NULL: return true;
#ifdef _IRR_COMPILE_WITH_OPENGL_
case EDT_OPENGL: return true;
#endif
#ifdef _IRR_COMPILE_WITH_OGLES1_
case EDT_OGLES1: return true;
#endif
#ifdef _IRR_COMPILE_WITH_OGLES2_
case EDT_OGLES2: return true;
#endif
#ifdef _IRR_COMPILE_WITH_WEBGL1_
case EDT_WEBGL1: return true;
#endif
default: return false;
}
}
}
} // end namespace irr