fix(gx): create GLSDL graphics device on Linux

This commit is contained in:
superp00t 2023-12-02 12:28:53 -05:00
parent b379e06194
commit 1570d3dc99

View File

@ -29,6 +29,14 @@ CGxDevice* GxDevCreate(EGxApi api, int32_t (*windowProc)(void* window, uint32_t
}
#endif
#if defined(WHOA_SYSTEM_LINUX)
if (api == GxApi_OpenGl) {
device = CGxDevice::NewOpenGl();
} else {
// Error
}
#endif
g_theGxDevicePtr = device;
if (g_theGxDevicePtr->DeviceCreate(windowProc, format)) {