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:
Bastiaan Olij
2022-05-28 21:09:23 +10:00
parent 0810b0d471
commit 69b66ec425
5 changed files with 18 additions and 2 deletions
@@ -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;
}