VideoCommon: remove constants.depthparams[2+3] as they aren't used in the shader at all
This commit is contained in:
parent
f4a9deefa8
commit
2118c1d3c3
|
@ -30,7 +30,6 @@
|
|||
#include "XFMemory.h"
|
||||
#include "FifoPlayer/FifoRecorder.h"
|
||||
#include "AVIDump.h"
|
||||
#include "VertexShaderManager.h"
|
||||
|
||||
#include <cmath>
|
||||
#include <string>
|
||||
|
@ -231,7 +230,6 @@ bool Renderer::CalculateTargetSize(unsigned int framebuffer_width, unsigned int
|
|||
{
|
||||
s_target_width = newEFBWidth;
|
||||
s_target_height = newEFBHeight;
|
||||
VertexShaderManager::SetViewportChanged();
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
|
|
@ -39,7 +39,7 @@
|
|||
#define I_TRANSFORMMATRICES "ctrmtx"
|
||||
#define I_NORMALMATRICES "cnmtx"
|
||||
#define I_POSTTRANSFORMMATRICES "cpostmtx"
|
||||
#define I_DEPTHPARAMS "cDepth" // farZ, zRange, scaled viewport width, scaled viewport height
|
||||
#define I_DEPTHPARAMS "cDepth" // farZ, zRange
|
||||
|
||||
//TODO: get rid of them, they aren't used at all
|
||||
#define C_POSNORMALMATRIX 0
|
||||
|
|
|
@ -378,8 +378,6 @@ void VertexShaderManager::SetConstants()
|
|||
bViewportChanged = false;
|
||||
constants.depthparams[0] = xfregs.viewport.farZ / 16777216.0f;
|
||||
constants.depthparams[1] = xfregs.viewport.zRange / 16777216.0f;
|
||||
constants.depthparams[2] = -1.f / g_renderer->EFBToScaledX(ceilf(2.0f * xfregs.viewport.wd));
|
||||
constants.depthparams[3] = 1.f / g_renderer->EFBToScaledY(ceilf(-2.0f * xfregs.viewport.ht));
|
||||
dirty = true;
|
||||
// This is so implementation-dependent that we can't have it here.
|
||||
UpdateViewport();
|
||||
|
|
Loading…
Reference in New Issue