mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-10 19:35:59 +03:00
fix(gx): create CGxDeviceGLSDL using GxApi_GLSDL
This commit is contained in:
parent
bd9e145557
commit
f03ea10648
@ -14,6 +14,8 @@ CGxDevice* GxDevCreate(EGxApi api, int32_t (*windowProc)(void* window, uint32_t
|
|||||||
device = CGxDevice::NewD3d();
|
device = CGxDevice::NewD3d();
|
||||||
} else if (api == GxApi_D3d9Ex) {
|
} else if (api == GxApi_D3d9Ex) {
|
||||||
device = CGxDevice::NewD3d9Ex();
|
device = CGxDevice::NewD3d9Ex();
|
||||||
|
} else if (api == GxApi_GLSDL) {
|
||||||
|
device = CGxDevice::NewGLSDL();
|
||||||
} else {
|
} else {
|
||||||
// Error
|
// Error
|
||||||
}
|
}
|
||||||
@ -30,8 +32,8 @@ CGxDevice* GxDevCreate(EGxApi api, int32_t (*windowProc)(void* window, uint32_t
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(WHOA_SYSTEM_LINUX)
|
#if defined(WHOA_SYSTEM_LINUX)
|
||||||
if (api == GxApi_OpenGl) {
|
if (api == GxApi_GLSDL) {
|
||||||
device = CGxDevice::NewOpenGl();
|
device = CGxDevice::NewGLSDL();
|
||||||
} else {
|
} else {
|
||||||
// Error
|
// Error
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user