mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-12 03:02:30 +00:00
fix(gx): create CGxDeviceGLSDL using GxApi_GLSDL
This commit is contained in:
parent
bd9e145557
commit
f03ea10648
1 changed files with 4 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue