Skip to content

Commit

Permalink
[D3D11] fixed WinRT build
Browse files Browse the repository at this point in the history
  • Loading branch information
eugenegff committed Aug 21, 2024
1 parent 4051467 commit 1b31aeb
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,9 @@ namespace Ogre
HRESULT D3D11WindowCoreWindow::_createSwapChainImpl()
{
# if !__OGRE_WINRT_PHONE
mSampleDescription =
mRenderSystem->validateSampleDescription( mRequestedSampleDescription, _getRenderFormat() );
mSampleDescription = mRenderSystem->validateSampleDescription(
mRequestedSampleDescription, _getRenderFormat(), TextureFlags::NotTexture,
TextureFlags::NotTexture );
# endif
DXGI_SWAP_CHAIN_DESC1 desc = {};
desc.Width = 0; // Use automatic sizing.
Expand Down Expand Up @@ -274,8 +275,9 @@ namespace Ogre
HRESULT D3D11WindowSwapChainPanel::_createSwapChainImpl()
{
# if !__OGRE_WINRT_PHONE
mSampleDescription =
mRenderSystem->validateSampleDescription( mRequestedSampleDescription, _getRenderFormat() );
mSampleDescription = mRenderSystem->validateSampleDescription(
mRequestedSampleDescription, _getRenderFormat(), TextureFlags::NotTexture,
TextureFlags::NotTexture );
# endif

int widthPx = std::max( 1, (int)floorf( mRequestedWidth * mCompositionScale.Width + 0.5f ) );
Expand Down

0 comments on commit 1b31aeb

Please sign in to comment.