Merge pull request #56048 from Faless/headless/os_features

This commit is contained in:
Rémi Verschelde 2021-12-20 10:54:58 +01:00 committed by GitHub
commit 71616630e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -692,7 +692,9 @@ public:
virtual void update_memory_info() override {}
virtual uint64_t get_rendering_info(RS::RenderingInfo p_info) override { return 0; }
bool has_os_feature(const String &p_feature) const override { return false; }
bool has_os_feature(const String &p_feature) const override {
return p_feature == "rgtc" || p_feature == "bptc" || p_feature == "s3tc" || p_feature == "etc" || p_feature == "etc2";
}
void update_dirty_resources() override {}