mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-10-26 22:06:06 +03:00
fix(gx): create GLSDL graphics device on Linux
This commit is contained in:
parent
b379e06194
commit
1570d3dc99
@ -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)) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user