mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2026-11-01 04:07:17 +03:00
fix(gx): create GLSDL graphics device on Linux
This commit is contained in:
1 parent
b379e06194
commit
1570d3dc99
1 file changed
+8
@@ -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)) {
|
||||
|
||||
Reference in new issue
Block a user