Add graphics restrictions for iOS simulator

This commit is contained in:
Benau 2019-07-19 17:14:31 +08:00
parent 58e69ce8df
commit 5d2b3efe12
2 changed files with 4 additions and 0 deletions

View File

@ -39,5 +39,7 @@
<card os="android" version="<19" disable="SystemScreenKeyboard"/> <card os="android" version="<19" disable="SystemScreenKeyboard"/>
<card contains="Android Emulator" os="android" disable="ForceLegacyDevice"/> <card contains="Android Emulator" os="android" disable="ForceLegacyDevice"/>
<card contains="Android Emulator" os="android" disable="NpotTextures"/> <card contains="Android Emulator" os="android" disable="NpotTextures"/>
<card contains="Apple Software Renderer" os="ios" disable="ForceLegacyDevice"/>
<card contains="Apple Software Renderer" os="ios" disable="NpotTextures"/>
<card vendor="Broadcom" os="linux" disable="HighDefinitionTextures256"/> <card vendor="Broadcom" os="linux" disable="HighDefinitionTextures256"/>
</graphical-restrictions> </graphical-restrictions>

View File

@ -451,6 +451,8 @@ public:
{ {
#if defined(__linux__) && !defined(ANDROID) #if defined(__linux__) && !defined(ANDROID)
if(m_os!="linux") return false; if(m_os!="linux") return false;
#elif defined(IOS_STK)
if(m_os!="ios") return false;
#elif defined(WIN32) #elif defined(WIN32)
if(m_os!="windows") return false; if(m_os!="windows") return false;
#elif defined(__APPLE__) #elif defined(__APPLE__)