Merge pull request from ilwar2/master

opengl crash on video playback fixed
This commit is contained in:
Tim Felgentreff 2019-12-03 15:01:50 +01:00 committed by GitHub
commit 607fe40ef1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -197,6 +197,10 @@ static bool IsExtensionSupported(const char *extension)
len = strlen(extension);
start = extensions;
while (true) {
if (!start)
{
return false;
}
ptr = (GLubyte *)strstr((const char *)start, extension);
if (!ptr) {
break;