diff options
| author | hrydgard <hrydgard@gmail.com> | 2009-09-13 10:18:01 +0000 |
|---|---|---|
| committer | hrydgard <hrydgard@gmail.com> | 2009-09-13 10:18:01 +0000 |
| commit | 73d2b3e9684da5eb43280b7facbf2f31d584a75b (patch) | |
| tree | 5ab368e37a1eefb2f2153b9dbf01afef1cd155e1 /Source/Plugins/Plugin_VideoDX9/Src/Render.cpp | |
| parent | 2d93c654f09e86b00a14b0929f07089c137bcc05 (diff) | |
more uninteresting cleanup, fixed a minor race condition when toggling efb copy mode
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4261 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Plugins/Plugin_VideoDX9/Src/Render.cpp')
| -rw-r--r-- | Source/Plugins/Plugin_VideoDX9/Src/Render.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Plugins/Plugin_VideoDX9/Src/Render.cpp b/Source/Plugins/Plugin_VideoDX9/Src/Render.cpp index 63c6dd042e..89e1aa525b 100644 --- a/Source/Plugins/Plugin_VideoDX9/Src/Render.cpp +++ b/Source/Plugins/Plugin_VideoDX9/Src/Render.cpp @@ -65,8 +65,9 @@ bool Renderer::Init() UpdateActiveConfig(); EmuWindow::SetSize(g_Res[g_ActiveConfig.iWindowedRes][0], g_Res[g_ActiveConfig.iWindowedRes][1]); + int backbuffer_ms_mode = g_ActiveConfig.iMultisampleMode; D3D::Create(g_ActiveConfig.iAdapter, EmuWindow::GetWnd(), g_ActiveConfig.bFullscreen, - g_ActiveConfig.iFSResolution, g_ActiveConfig.iMultisampleMode); + g_ActiveConfig.iFSResolution, backbuffer_ms_mode); s_targetWidth = D3D::GetDisplayWidth(); s_targetHeight = D3D::GetDisplayHeight(); @@ -92,7 +93,6 @@ bool Renderer::Init() D3D::dev->SetSamplerState(i, D3DSAMP_MAXANISOTROPY, 16); D3D::BeginFrame(true, 0, 1.0f); - VertexManager::BeginFrame(); return true; } @@ -308,7 +308,7 @@ void Renderer::SwapBuffers() // So let's keep it commented out. // D3D::EnableAlphaToCoverage(); - VertexManager::BeginFrame(); + UpdateViewport(); if (g_ActiveConfig.bOldCard) D3D::font.SetRenderStates(); //compatibility with low end cards |
