Skip to content

Commit

Permalink
use ANGLE_D3D_FEATURE_LEVEL_ANY for Windows 8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
stammen committed May 2, 2014
1 parent b811cda commit 66274c7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions samples/Asteroids/Asteroids.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,12 @@ void Asteroids::SetWindow(CoreWindow^ window)

// we need to select the correct DirectX feature level depending on the platform
// default is D3D_FEATURE_LEVEL_9_3 Windows Phone 8.0

#if (_MSC_VER >= 1800)
ANGLE_D3D_FEATURE_LEVEL featureLevel = ANGLE_D3D_FEATURE_LEVEL::ANGLE_D3D_FEATURE_LEVEL_ANY;
#else
ANGLE_D3D_FEATURE_LEVEL featureLevel = ANGLE_D3D_FEATURE_LEVEL::ANGLE_D3D_FEATURE_LEVEL_9_1;
#endif

CreateWinrtEglWindow(WINRT_EGL_IUNKNOWN(CoreWindow::GetForCurrentThread()), featureLevel, m_eglWindow.GetAddressOf());

Expand Down

0 comments on commit 66274c7

Please sign in to comment.