mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-12 19:22: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();
|
||||
} else if (api == GxApi_D3d9Ex) {
|
||||
device = CGxDevice::NewD3d9Ex();
|
||||
} else if (api == GxApi_GLSDL) {
|
||||
device = CGxDevice::NewGLSDL();
|
||||
} else {
|
||||
// Error
|
||||
}
|
||||
|
|
@ -30,8 +32,8 @@ CGxDevice* GxDevCreate(EGxApi api, int32_t (*windowProc)(void* window, uint32_t
|
|||
#endif
|
||||
|
||||
#if defined(WHOA_SYSTEM_LINUX)
|
||||
if (api == GxApi_OpenGl) {
|
||||
device = CGxDevice::NewOpenGl();
|
||||
if (api == GxApi_GLSDL) {
|
||||
device = CGxDevice::NewGLSDL();
|
||||
} else {
|
||||
// Error
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue