Fall back to software transform when hardware transform fails. Should help Mali devices.

This is done per shader so the speed hit should not be as bad as turning hw transform off entirely.
Displays a red error at the top of the screen so that we don't trigger this accidentally.
This commit is contained in:
Henrik Rydgard committed 2013-06-06 10:09:37 +02:00
1 parent 85d075db53
commit e7097ca95a
8 files changed
+91 -57

No files matched your search

+7 -1
View File
@@ -36,8 +36,14 @@ restart:
}
}
void OnScreenMessages::Show(const std::string &message, float duration_s, uint32_t color, int icon) {
void OnScreenMessages::Show(const std::string &message, float duration_s, uint32_t color, int icon, bool checkUnique) {
std::lock_guard<std::recursive_mutex> guard(mutex_);
if (checkUnique) {
for (auto iter = messages_.begin(); iter != messages_.end(); ++iter) {
if (iter->text == message)
return;
}
}
double now = time_now_d();
Message msg;
msg.text = message;