mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2026-11-26 23:53:35 +03:00
fix(gx): create CGxDeviceGLSDL using GxApi_GLSDL
This commit is contained in:
1 parent
bd9e145557
commit
f03ea10648
1 file changed
+4
-2
+4
-2
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user