Ensure has_os_features is safely called as it can't be called from within the construct of RenderingServerDefault on which it relies
This commit is contained in:
@@ -442,6 +442,10 @@ bool RasterizerStorageGLES3::free(RID p_rid) {
|
||||
}
|
||||
|
||||
bool RasterizerStorageGLES3::has_os_feature(const String &p_feature) const {
|
||||
if (!config) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (p_feature == "rgtc") {
|
||||
return config->rgtc_supported;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user