fix wireframe setting toggling

This commit is contained in:
Jordan Woyak 2011-11-29 22:21:43 -06:00
parent 0dfca1cf2b
commit 4fcd6994c6
1 changed files with 1 additions and 2 deletions

View File

@ -1439,8 +1439,7 @@ void Renderer::RestoreAPIState()
SetBlendMode(true);
VertexShaderManager::SetViewportChanged();
if (g_ActiveConfig.bWireFrame)
glPolygonMode(GL_FRONT_AND_BACK, GL_LINE);
glPolygonMode(GL_FRONT_AND_BACK, g_ActiveConfig.bWireFrame ? GL_LINE : GL_FILL);
VertexShaderCache::SetCurrentShader(0);
PixelShaderCache::SetCurrentShader(0);