Add null pointer check

This commit is contained in:
bparker06 2018-06-11 20:28:36 -04:00 committed by GitHub
parent 890c781a76
commit ab9e00219d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -311,7 +311,7 @@ bool gl_check_capability(enum gl_capability_enum enum_idx)
if (major >= 3)
return true;
#else
if (strstr(vendor, "ATI Technologies"))
if (vendor && strstr(vendor, "ATI Technologies"))
return false;
if (gl_query_extension("ARB_texture_storage"))
return true;