Skip to content

Commit a442f70

Browse files
authored
Merge pull request #35 from crystall1nedev/ios-133-patch
[FIX] glGetString("GL_EXTENSIONS") hang on iOS
2 parents 0502bdf + 9fca5a9 commit a442f70

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/main/cpp/gl/getter.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,9 +269,13 @@ const GLubyte * glGetString( GLenum name ) {
269269
return (const GLubyte *) "4.60 MobileGlues with glslang and SPIRV-Cross";
270270
}
271271
case GL_EXTENSIONS: {
272+
#if !defined(__APPLE__)
272273
static std::string cached;
273274
cached = GetExtensionsList();
274275
return (const GLubyte *) cached.c_str();
276+
#else
277+
return (const GLubyte *) GetExtensionsList().c_str();
278+
#endif
275279
}
276280
case GL_SETTINGS_MG: {
277281
static char* settings_string = nullptr;

0 commit comments

Comments
 (0)