Commit 98e7d071 by Corentin Wallez

Use a D3D11 renderer by default, when available.

Also update SampleApplication to request the default renderer instead of explicitely asking for d3d11 BUG=angleproject:892 Change-Id: I70c431b3c1ba78c3ce7844d7f276cc19ac17d7f5 Reviewed-on: https://chromium-review.googlesource.com/269999Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org> Tested-by: 's avatarCorentin Wallez <cwallez@chromium.org>
parent 2cf30bd0
...@@ -24,7 +24,7 @@ class SampleApplication ...@@ -24,7 +24,7 @@ class SampleApplication
{ {
public: public:
SampleApplication(const std::string& name, size_t width, size_t height, SampleApplication(const std::string& name, size_t width, size_t height,
EGLint glesMajorVersion = 2, EGLint requestedRenderer = EGL_PLATFORM_ANGLE_TYPE_D3D11_ANGLE); EGLint glesMajorVersion = 2, EGLint requestedRenderer = EGL_PLATFORM_ANGLE_TYPE_DEFAULT_ANGLE);
virtual ~SampleApplication(); virtual ~SampleApplication();
virtual bool initialize(); virtual bool initialize();
......
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
#if !defined(ANGLE_DEFAULT_D3D11) #if !defined(ANGLE_DEFAULT_D3D11)
// Enables use of the Direct3D 11 API for a default display, when available // Enables use of the Direct3D 11 API for a default display, when available
# define ANGLE_DEFAULT_D3D11 0 # define ANGLE_DEFAULT_D3D11 1
#endif #endif
namespace rx namespace rx
......
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