mirror of
https://github.com/AxioDL/boo.git
synced 2025-12-15 08:06:16 +00:00
Add gfxApi argument for X11; Win32 gfxApi logic fix
This commit is contained in:
@@ -225,6 +225,7 @@ public:
|
||||
std::string_view friendlyName,
|
||||
std::string_view pname,
|
||||
const std::vector<std::string>& args,
|
||||
std::string_view gfxApi,
|
||||
uint32_t samples,
|
||||
uint32_t anisotropy,
|
||||
bool singleInstance)
|
||||
@@ -240,6 +241,8 @@ public:
|
||||
#if BOO_HAS_VULKAN
|
||||
/* Check for Vulkan presence and preference */
|
||||
bool tryVulkan = true;
|
||||
if (!gfxApi.compare("OpenGL"))
|
||||
tryVulkan = false;
|
||||
for (const std::string& arg : args)
|
||||
{
|
||||
if (!arg.compare("--gl"))
|
||||
|
||||
Reference in New Issue
Block a user