Commit 10df615d141 ("add "Send Debug Info" option under Help") added some
debug information that contains the GL_VENDOR, GL_RENDERER and GL_VERSION
strings that are returned by the glGetString() function, and is used by
algorithms to recognize the platform.
But in some GL contexts, these may be NULL which leads to a NULL pointer
dereference when trying to copy the returned strings. Commit 97247dbaecc
("gl1: check for vender/renderer was in the wrong place") later fixed it
for the GL1 driver, but it missed doing the same for the GL driver.
For example, on an Exynos Odroid XU4 with a mali-fdev GL context I get:
$ retroarch -v
[INFO] RetroArch 1.8.5 (Git 8d3f25f)
[INFO] === Build =======================================
[INFO] Capabilities: NEON VFPv3 VFPv4
[INFO] Built: Mar 18 2020
[INFO] Version: 1.8.5
[INFO] Git: 8d3f25f
[INFO] =================================================
[INFO] [Environ]: SET_PIXEL_FORMAT: RGB565.
[INFO] Version of libretro API: 1
[INFO] Compiled against API: 1
[INFO] [Audio]: Set audio input rate to: 30000.00 Hz.
[INFO] [Video]: Video @ 960x720
[INFO] [EGL] Falling back to eglGetDisplay
[INFO] [EGL]: EGL version: 1.4
[INFO] [GL]: Found GL context: mali-fbdev
[INFO] [GL]: Detecting screen resolution 0x0.
[INFO] [EGL]: Current context: 0xf08e20.
[INFO] [GL]: Vendor: (null), Renderer: (null).
[INFO] [GL]: Version: (null).
Segmentation fault (core dumped)
Xcode 11.2 has been failing for a while through the following error. This change ignores that failure until we can fix it properly...
```
0.03s$ echo $OSX_CERT | base64 --decode > dev.p12
The command "echo $OSX_CERT | base64 --decode > dev.p12" exited with 0.
0.04s$ security import dev.p12 -k build.keychain -P $OSX_CERT_PASS -T /usr/bin/codesign
security: SecKeychainItemImport: One or more parameters passed to a function were not valid.
The command "security import dev.p12 -k build.keychain -P $OSX_CERT_PASS -T /usr/bin/codesign" exited with 1.
0.01s$ rm dev.p12
The command "rm dev.p12" exited with 0.
0.05s$ security set-key-partition-list -S "apple-tool:,apple:,codesign:" -s -k travis build.keychain
security: SecItemCopyMatching: The specified item could not be found in the keychain.
The command "security set-key-partition-list -S "apple-tool:,apple:,codesign:" -s -k travis build.keychain" exited with 1.
4.39s$ xcodebuild -target RetroArchQt -configuration Release -project pkg/apple/RetroArch_Metal.xcodeproj
note: Using new build system
note: Planning build
note: Constructing build description
error: No signing certificate "Developer ID Application" found: No "Developer ID Application" signing certificate matching team ID "ZE9XE938Z2" with a private key was found. (in target 'RetroArchQt' from project 'RetroArch_Metal')
** BUILD FAILED **
The command "xcodebuild -target RetroArchQt -configuration Release -project pkg/apple/RetroArch_Metal.xcodeproj" exited with 65.
```