mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-12 19:22:30 +00:00
fix(gx): only use GLSDL if compiled with CMake variable WHOA_BUILD_GLSDL
This commit is contained in:
parent
35cc734cdc
commit
5229b9b972
3 changed files with 5 additions and 2 deletions
|
|
@ -127,7 +127,7 @@ CGxDevice* CGxDevice::NewOpenGl() {
|
|||
return nullptr;
|
||||
}
|
||||
|
||||
#if defined(WHOA_SYSTEM_WIN) || defined(WHOA_SYSTEM_LINUX)
|
||||
#if defined(WHOA_BUILD_GLSDL)
|
||||
CGxDevice* CGxDevice::NewGLSDL() {
|
||||
auto m = SMemAlloc(sizeof(CGxDeviceGLSDL), __FILE__, __LINE__, 0x0);
|
||||
return new (m) CGxDeviceGLSDL();
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ class CGxDevice {
|
|||
#if defined(WHOA_SYSTEM_MAC)
|
||||
static CGxDevice* NewGLL();
|
||||
#endif
|
||||
#if defined(WHOA_SYSTEM_LINUX) || defined(WHOA_SYSTEM_WIN)
|
||||
#if defined(WHOA_BUILD_GLSDL)
|
||||
static CGxDevice* NewGLSDL();
|
||||
#endif
|
||||
static CGxDevice* NewOpenGl();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue