Core: Handle disabled class detection in ClassDB
This commit is contained in:
@ -41,7 +41,7 @@ void initialize_ktx_module(ModuleInitializationLevel p_level) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (GD_IS_CLASS_ENABLED(ImageTexture)) {
|
||||
if constexpr (GD_IS_CLASS_ENABLED(ImageTexture)) {
|
||||
resource_loader_ktx.instantiate();
|
||||
ResourceLoader::add_resource_format_loader(resource_loader_ktx);
|
||||
}
|
||||
@ -52,7 +52,7 @@ void uninitialize_ktx_module(ModuleInitializationLevel p_level) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (GD_IS_CLASS_ENABLED(ImageTexture)) {
|
||||
if constexpr (GD_IS_CLASS_ENABLED(ImageTexture)) {
|
||||
ResourceLoader::remove_resource_format_loader(resource_loader_ktx);
|
||||
resource_loader_ktx.unref();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user