зеркало из https://github.com/mozilla/gecko-dev.git
Bug 963550 - Warn about OpenGL non-support only once during execution instead of spamming the log. r=bjacob
This commit is contained in:
Родитель
288f125e6b
Коммит
47514259f1
|
@ -895,7 +895,11 @@ nsBaseWidget::ComputeShouldAccelerate(bool aDefault)
|
|||
return true;
|
||||
|
||||
if (!whitelisted) {
|
||||
NS_WARNING("OpenGL-accelerated layers are not supported on this system");
|
||||
static int tell_me_once = 0;
|
||||
if (!tell_me_once) {
|
||||
NS_WARNING("OpenGL-accelerated layers are not supported on this system");
|
||||
tell_me_once = 1;
|
||||
}
|
||||
#ifdef MOZ_ANDROID_OMTC
|
||||
NS_RUNTIMEABORT("OpenGL-accelerated layers are a hard requirement on this platform. "
|
||||
"Cannot continue without support for them");
|
||||
|
|
Загрузка…
Ссылка в новой задаче