summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorNeoBrainX <NeoBrainX@googlemail.com>2011-01-31 13:17:57 +0000
committerNeoBrainX <NeoBrainX@googlemail.com>2011-01-31 13:17:57 +0000
commit47d182657e56da0c708daf8bf2197ec6a1fefd4d (patch)
tree8d3e6a3e2ea3bec6f73ab8b53d70325e8329951a /Source
parent84f26a1afc339102bb704e5d51663f0ded789fbc (diff)
D3D9: Fix anisotropic filtering.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7019 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source')
-rw-r--r--Source/Plugins/Plugin_VideoDX9/Src/Render.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/Source/Plugins/Plugin_VideoDX9/Src/Render.cpp b/Source/Plugins/Plugin_VideoDX9/Src/Render.cpp
index 08b64ac09e..df7fa6c2ee 100644
--- a/Source/Plugins/Plugin_VideoDX9/Src/Render.cpp
+++ b/Source/Plugins/Plugin_VideoDX9/Src/Render.cpp
@@ -307,7 +307,7 @@ Renderer::Renderer()
SetupDeviceObjects();
for (int stage = 0; stage < 8; stage++)
- D3D::SetSamplerState(stage, D3DSAMP_MAXANISOTROPY, g_ActiveConfig.iMaxAnisotropy);
+ D3D::SetSamplerState(stage, D3DSAMP_MAXANISOTROPY, 1 << g_ActiveConfig.iMaxAnisotropy);
D3DVIEWPORT9 vp;
vp.X = 0;
@@ -1212,10 +1212,12 @@ void Renderer::Swap(u32 xfbAddr, FieldType field, u32 fbWidth, u32 fbHeight,cons
D3D::dev->SetDepthStencilSurface(D3D::GetBackBufferDepthSurface());
if (windowResized)
{
+ // device objects lost, so recreate all of them
SetupDeviceObjects();
}
else
{
+ // just resize the frame buffer
delete g_framebuffer_manager;
g_framebuffer_manager = new FramebufferManager;
}
@@ -1253,10 +1255,7 @@ void Renderer::Swap(u32 xfbAddr, FieldType field, u32 fbWidth, u32 fbHeight,cons
D3D::dev->SetDepthStencilSurface(FramebufferManager::GetEFBDepthRTSurface());
UpdateViewport();
VertexShaderManager::SetViewportChanged();
- // For testing zbuffer targets.
- // Renderer::SetZBufferRender();
- // SaveTexture("tex.tga", GL_TEXTURE_RECTANGLE_ARB, s_FakeZTarget,
- // GetTargetWidth(), GetTargetHeight());
+
Core::Callback_VideoCopiedToXFB(XFBWrited || (g_ActiveConfig.bUseXFB && g_ActiveConfig.bUseRealXFB));
XFBWrited = false;
}