Skip to content

Commit

Permalink
Fixed MSAA, fixed Non AA shader.
Browse files Browse the repository at this point in the history
  • Loading branch information
cmaughan committed Jun 9, 2014
1 parent c00f210 commit e23705e
Show file tree
Hide file tree
Showing 4 changed files with 4,237 additions and 2,586 deletions.
10 changes: 7 additions & 3 deletions example/example_d3d11.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// Copyright (c) 2013 Mikko Mononen [email protected]
//
// D3D Demo port cmaughan.
// This software is provided 'as-is', without any express or implied
// warranty. In no event will the authors be held liable for any damages
// arising from the use of this software.
Expand Down Expand Up @@ -148,9 +148,11 @@ void Draw()
if (screenshot)
{
screenshot = 0;
// Screenshot not yet supported
//saveScreenShot(fbWidth, fbHeight, premult, "dump.png");
}

// Don't wait for VBlank
IDXGISwapChain_Present(pSwapChain, 0, 0);
}

Expand Down Expand Up @@ -437,7 +439,9 @@ BOOL InitializeDX(unsigned int x, unsigned int y)
{
if (Quality > 0)
{
DXGI_SAMPLE_DESC Desc = { i, Quality - 1 };
DXGI_SAMPLE_DESC Desc;
Desc.Count = i;
Desc.Quality = Quality - 1;
swapDesc.SampleDesc = Desc;
}
}
Expand All @@ -460,7 +464,7 @@ BOOL InitializeDX(unsigned int x, unsigned int y)
if (FAILED(hr))
{
swapDesc.SampleDesc.Count = 1;
hr = IDXGIFactory_CreateSwapChain(pDXGIFactory, pDevice, &swapDesc, &pSwapChain);
hr = IDXGIFactory_CreateSwapChain(pDXGIFactory, (IUnknown*)pDevice, &swapDesc, &pSwapChain);
}
#endif
}
Expand Down
Loading

0 comments on commit e23705e

Please sign in to comment.