Merge pull request #2201 from magumagu/ogl-clamp-origin

OpenGL: use ClampUL instead of ClampLL where appropriate.
This commit is contained in:
skidau 2015-03-21 12:45:46 +11:00
commit 94e435afbc
1 changed files with 2 additions and 2 deletions

View File

@ -369,7 +369,7 @@ GLuint FramebufferManager::GetEFBColorTexture(const EFBRectangle& sourceRc)
// required. // required.
TargetRectangle targetRc = g_renderer->ConvertEFBRectangle(sourceRc); TargetRectangle targetRc = g_renderer->ConvertEFBRectangle(sourceRc);
targetRc.ClampLL(0, 0, m_targetWidth, m_targetHeight); targetRc.ClampUL(0, 0, m_targetWidth, m_targetHeight);
// Resolve. // Resolve.
for (unsigned int i = 0; i < m_EFBLayers; i++) for (unsigned int i = 0; i < m_EFBLayers; i++)
@ -401,7 +401,7 @@ GLuint FramebufferManager::GetEFBDepthTexture(const EFBRectangle& sourceRc)
// Transfer the EFB to a resolved texture. // Transfer the EFB to a resolved texture.
TargetRectangle targetRc = g_renderer->ConvertEFBRectangle(sourceRc); TargetRectangle targetRc = g_renderer->ConvertEFBRectangle(sourceRc);
targetRc.ClampLL(0, 0, m_targetWidth, m_targetHeight); targetRc.ClampUL(0, 0, m_targetWidth, m_targetHeight);
// Resolve. // Resolve.
for (unsigned int i = 0; i < m_EFBLayers; i++) for (unsigned int i = 0; i < m_EFBLayers; i++)