| 835 | } |
| 836 | |
| 837 | bool |
| 838 | AppManager::hasOpenGLForRequirements(OpenGLRequirementsTypeEnum type, QString* missingOpenGLError ) const |
| 839 | { |
| 840 | std::map<OpenGLRequirementsTypeEnum,AppManagerPrivate::OpenGLRequirementsData>::const_iterator found = _imp->glRequirements.find(type); |
| 841 | assert(found != _imp->glRequirements.end()); |
| 842 | if (found == _imp->glRequirements.end()) { |
| 843 | return false; |
| 844 | } |
| 845 | if (missingOpenGLError && !found->second.hasRequirements) { |
| 846 | *missingOpenGLError = found->second.error; |
| 847 | } |
| 848 | return found->second.hasRequirements; |
| 849 | } |
| 850 | |
| 851 | bool |
| 852 | AppManager::initializeOpenGLFunctionsOnce(bool createOpenGLContext) |
no test coverage detected