Skip to content

Commit

Permalink
prefer vulkan over opengl by default on windows/linux.
Browse files Browse the repository at this point in the history
  • Loading branch information
slime73 committed Dec 10, 2024
1 parent bd6c90b commit 486cc22
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/modules/graphics/Graphics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,15 +115,21 @@ namespace vulkan { extern love::graphics::Graphics *createInstance(); }

static const Renderer rendererOrder[] = {
RENDERER_METAL,
#ifdef LOVE_ANDROID
// Don't enable vulkan by default yet on android - it needs more testing.
RENDERER_OPENGL,
RENDERER_VULKAN,
#else
RENDERER_VULKAN,
RENDERER_OPENGL,
#endif
};

static std::vector<Renderer> defaultRenderers =
{
RENDERER_METAL,
RENDERER_OPENGL,
RENDERER_VULKAN,
RENDERER_OPENGL,
};

static std::vector<Renderer> _renderers = defaultRenderers;
Expand Down

0 comments on commit 486cc22

Please sign in to comment.