Showing the changes to interface/src/scripting/TestScriptingInterface.cpp (1 of 2 files). Show all
Unified · Split
| @@ -200,9 +200,12 @@ int TestScriptingInterface::getOtherAvatarsReplicaCount() { · 199 unmodified lines | |||
| 200 | return qApp->getOtherAvatarsReplicaCount(); | 200 | return qApp->getOtherAvatarsReplicaCount(); |
| 201 | } | 201 | } |
| 202 | 202 | ||
| 203 | void TestScriptingInterface::setMinimumGPUTextureMemStabilityCount(int count) { | ||
| 204 | qApp->setMinimumGPUTextureMemStabilityCount(count); | ||
| 205 | } | ||
| 206 | |||
| 203 | bool TestScriptingInterface::isTextureLoadingComplete() { | 207 | bool TestScriptingInterface::isTextureLoadingComplete() { |
| 204 | bool result; | 208 | bool result; |
| 205 | qApp->setMinimumGPUTextureMemStabilityCount(2); | ||
| 206 | QMetaObject::invokeMethod(qApp, "gpuTextureMemSizeStable", Qt::DirectConnection, Q_RETURN_ARG(bool, result)); | 209 | QMetaObject::invokeMethod(qApp, "gpuTextureMemSizeStable", Qt::DirectConnection, Q_RETURN_ARG(bool, result)); |
| 207 | return result; | 210 | return result; |
| 208 | } | 211 | } |