mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-12 03:02:30 +00:00
fix(gx): create GLSDL graphics device on Linux
This commit is contained in:
parent
b379e06194
commit
1570d3dc99
1 changed files with 8 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue