mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-01 13:48:56 +00:00
rename UpdateViewport to SetViewport like all others setters in RenderBase.h
This commit is contained in:
parent
3cd6918dec
commit
5a660c27bc
7 changed files with 14 additions and 19 deletions
|
@ -18,6 +18,7 @@
|
|||
#include "XFMemory.h"
|
||||
#include "VideoCommon.h"
|
||||
#include "VertexManagerBase.h"
|
||||
#include "RenderBase.h"
|
||||
|
||||
#include "RenderBase.h"
|
||||
float GC_ALIGNED16(g_fProjectionMatrix[16]);
|
||||
|
@ -173,8 +174,6 @@ static void ViewportCorrectionMatrix(Matrix44& result)
|
|||
result.data[4*1+3] = (-intendedHt + 2.f * (Y - intendedY)) / Ht + 1.f;
|
||||
}
|
||||
|
||||
void UpdateViewport();
|
||||
|
||||
void VertexShaderManager::Init()
|
||||
{
|
||||
Dirty();
|
||||
|
@ -373,7 +372,7 @@ void VertexShaderManager::SetConstants()
|
|||
constants.depthparams[1] = xfregs.viewport.zRange / 16777216.0f;
|
||||
dirty = true;
|
||||
// This is so implementation-dependent that we can't have it here.
|
||||
UpdateViewport();
|
||||
SetViewport();
|
||||
|
||||
// Update projection if the viewport isn't 1:1 useable
|
||||
if(!g_ActiveConfig.backend_info.bSupportsOversizedViewports)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue