fix compile error on ios (#2063)

This commit is contained in:
coulsonwang
2020-01-09 17:35:25 +08:00
committed by minggo
parent e457a3e6d9
commit b74e7187e8
+2
View File
@@ -120,6 +120,8 @@ void Configuration::gatherGPUInfo()
// _valueDict["gl.version"] = Value(version);
#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS)
const char* version = (const char*)glGetString(GL_VERSION);
_valueDict["gl.version"] = Value(version);
if (std::regex_match(version, std::regex("OpenGL ES 3.*"))) {
_isOpenglES3 = true;
}