summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/OGL/FramebufferManager.cpp
diff options
context:
space:
mode:
authorcrudelios <crudelios@gmail.com>2014-01-26 13:21:22 +0000
committercrudelios <crudelios@gmail.com>2014-01-26 13:21:22 +0000
commit9b6c6fa9e411cf78b6b2951cbb3467bb2e27ab50 (patch)
tree2038eeeda14872f6a1ba37c25c936c4ec1120525 /Source/Core/VideoBackends/OGL/FramebufferManager.cpp
parentd3fd0eddbbe423edddc1abb6489ccc7369c8b892 (diff)
BBox: Changed the rounding again, the old one fixed Paper Mario but had bugs in Mickey's Magical Mirror. This change fixes the glitches in both games.
Also fixed some compiler warnings.
Diffstat (limited to 'Source/Core/VideoBackends/OGL/FramebufferManager.cpp')
-rw-r--r--Source/Core/VideoBackends/OGL/FramebufferManager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/VideoBackends/OGL/FramebufferManager.cpp b/Source/Core/VideoBackends/OGL/FramebufferManager.cpp
index 7984b5ee74..d2169a7c91 100644
--- a/Source/Core/VideoBackends/OGL/FramebufferManager.cpp
+++ b/Source/Core/VideoBackends/OGL/FramebufferManager.cpp
@@ -394,13 +394,13 @@ XFBSource::~XFBSource()
}
-void XFBSource::Draw(const MathUtil::Rectangle<float> &sourcerc,
+void XFBSource::Draw(const MathUtil::Rectangle<int> &sourcerc,
const MathUtil::Rectangle<float> &drawrc) const
{
// Texture map xfbSource->texture onto the main buffer
glFramebufferTexture2D(GL_READ_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, texture, 0);
glBlitFramebuffer(sourcerc.left, sourcerc.bottom, sourcerc.right, sourcerc.top,
- drawrc.left, drawrc.bottom, drawrc.right, drawrc.top,
+ (int)drawrc.left, (int)drawrc.bottom, (int)drawrc.right, (int)drawrc.top,
GL_COLOR_BUFFER_BIT, GL_LINEAR);
GL_REPORT_ERRORD();