Commit 4fba4a97 by Geoff Lang Committed by Commit Bot

Include the D3D11 headers on Windows when OpenGL is enabled.

The OpenGL backend on Windows uses D3D11 to implement several interop extensions. Without this change, there are compile failures when the D3D11 backend is disabled. BUG=angleproject:2276 Change-Id: I69ad524ca84aa0aa399cfc0b601315f3ee65ed16 Reviewed-on: https://chromium-review.googlesource.com/809186Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Commit-Queue: Geoff Lang <geofflang@chromium.org>
parent 3dddccff
...@@ -58,7 +58,8 @@ ...@@ -58,7 +58,8 @@
# include <d3dcompiler.h> # include <d3dcompiler.h>
# endif # endif
# if defined(ANGLE_ENABLE_D3D11) // Include D3D11 headers when OpenGL is enabled on Windows for interop extensions.
#if defined(ANGLE_ENABLE_D3D11) || defined(ANGLE_ENABLE_OPENGL)
#include <d3d10_1.h> #include <d3d10_1.h>
#include <d3d11.h> #include <d3d11.h>
#include <d3d11_3.h> #include <d3d11_3.h>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment