Merge pull request #84513 from bruvzg/x11_fallback_and_spam

[X11] Add fallback from desktop GL to GLES, suppress PRIME detector error spam.
This commit is contained in:
Rémi Verschelde 2023-11-09 11:46:36 +01:00
commit aaafc69132
No known key found for this signature in database
GPG key ID: C3336907360768E1
8 changed files with 49 additions and 18 deletions

View file

@ -122,7 +122,7 @@ void StringName::unref() {
if (_data && _data->refcount.unref()) {
MutexLock lock(mutex);
if (_data->static_count.get() > 0) {
if (CoreGlobals::leak_reporting_enabled && _data->static_count.get() > 0) {
if (_data->cname) {
ERR_PRINT("BUG: Unreferenced static string to 0: " + String(_data->cname));
} else {