Skip to content

Commit c7a831c

Browse files
committed
hello_xr: D3D plugin requires DirectXColors which isn't in MinGW
1 parent 4e223d5 commit c7a831c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/tests/hello_xr/graphicsplugin_d3d11.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#include "geometry.h"
44
#include "graphicsplugin.h"
55

6-
#ifdef XR_USE_GRAPHICS_API_D3D11
6+
#if defined(XR_USE_GRAPHICS_API_D3D11) && !defined(__MINGW32__)
77

88
#include <common/xr_linear.h>
99
#include <DirectXColors.h>

src/tests/hello_xr/graphicsplugin_factory.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ std::shared_ptr<IGraphicsPlugin> CreateGraphicsPlugin_OpenGL(const std::shared_p
1818
std::shared_ptr<IGraphicsPlugin> CreateGraphicsPlugin_Vulkan(const std::shared_ptr<Options>& options,
1919
std::shared_ptr<IPlatformPlugin> platformPlugin);
2020
#endif
21-
#ifdef XR_USE_GRAPHICS_API_D3D11
21+
#if defined(XR_USE_GRAPHICS_API_D3D11) && !defined(__MINGW32__)
2222
std::shared_ptr<IGraphicsPlugin> CreateGraphicsPlugin_D3D11(const std::shared_ptr<Options>& options,
2323
std::shared_ptr<IPlatformPlugin> platformPlugin);
2424
#endif
@@ -48,7 +48,7 @@ std::map<std::string, GraphicsPluginFactory, IgnoreCaseStringLess> graphicsPlugi
4848
return CreateGraphicsPlugin_Vulkan(options, std::move(platformPlugin));
4949
}},
5050
#endif
51-
#ifdef XR_USE_GRAPHICS_API_D3D11
51+
#if defined(XR_USE_GRAPHICS_API_D3D11) && !defined(__MINGW32__)
5252
{"D3D11",
5353
[](const std::shared_ptr<Options>& options, std::shared_ptr<IPlatformPlugin> platformPlugin) {
5454
return CreateGraphicsPlugin_D3D11(options, std::move(platformPlugin));

0 commit comments

Comments
 (0)