Fix -Wundef warnings due to use of unguarded SDL_VIDEO_RENDER_METAL
This commit is contained in:
1 parent
ece25f27fa
commit
8299dd470a
2 files changed
+2
-2
No files matched your search
@@ -98,7 +98,7 @@ static const SDL_RenderDriver *render_drivers[] = {
|
||||
#ifdef SDL_VIDEO_RENDER_D3D
|
||||
&D3D_RenderDriver,
|
||||
#endif
|
||||
#if SDL_VIDEO_RENDER_METAL
|
||||
#ifdef SDL_VIDEO_RENDER_METAL
|
||||
&METAL_RenderDriver,
|
||||
#endif
|
||||
#if SDL_VIDEO_RENDER_OGL
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
*/
|
||||
#include "SDL_internal.h"
|
||||
|
||||
#if SDL_VIDEO_RENDER_METAL && !defined(SDL_RENDER_DISABLED)
|
||||
#if defined(SDL_VIDEO_RENDER_METAL) && !defined(SDL_RENDER_DISABLED)
|
||||
|
||||
#include "../SDL_sysrender.h"
|
||||
|
||||
|
||||
Reference in new issue
Block a user