diff options
| author | Scott Mansell <phiren@gmail.com> | 2015-01-24 03:15:09 +1300 |
|---|---|---|
| committer | Scott Mansell <phiren@gmail.com> | 2015-01-24 03:22:27 +1300 |
| commit | 5510c86b8133ec734ba490b700d4f432d98f71a7 (patch) | |
| tree | 0bbcf23d7f32a301b0e1a8f0a4aadc90ecf77910 /Source/Core/VideoBackends/OGL/VertexManager.cpp | |
| parent | daf760b20245c2e397a98da94e80c15be9090657 (diff) | |
Move Zfreeze code out individual backends into videoCommon
Also:
* Implement support for per-vertex PosMatrixIndex
* Only update zslope constant once when zfreeze is activated.
* Added a bunch of comments.
Diffstat (limited to 'Source/Core/VideoBackends/OGL/VertexManager.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/OGL/VertexManager.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/Source/Core/VideoBackends/OGL/VertexManager.cpp b/Source/Core/VideoBackends/OGL/VertexManager.cpp index 81c377fd02..1a162b1cde 100644 --- a/Source/Core/VideoBackends/OGL/VertexManager.cpp +++ b/Source/Core/VideoBackends/OGL/VertexManager.cpp @@ -89,9 +89,6 @@ void VertexManager::ResetBuffer(u32 stride) buffer = s_indexBuffer->Map(MAXIBUFFERSIZE * sizeof(u16)); IndexGenerator::Start((u16*)buffer.first); s_index_offset = buffer.second; - - if (bpmem.genMode.zfreeze) - PixelShaderManager::SetZSlope(ZSlope.dfdx, ZSlope.dfdy, ZSlope.f0); } void VertexManager::Draw(u32 stride) @@ -143,13 +140,6 @@ void VertexManager::vFlush(bool useDstAlpha) PrepareDrawBuffers(stride); - if (!bpmem.genMode.zfreeze) - CalculateZSlope(stride); - - // If cull mode is CULL_ALL, do not render these triangles - if (bpmem.genMode.cullmode == GenMode::CULL_ALL && current_primitive_type == PRIMITIVE_TRIANGLES) - return; - // Makes sure we can actually do Dual source blending bool dualSourcePossible = g_ActiveConfig.backend_info.bSupportsDualSourceBlend; |
