summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/OGL/OGLTexture.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-03-16 12:57:36 -0400
committerLioncash <mathew1800@gmail.com>2018-03-16 13:01:11 -0400
commit75f5fcdfee4cd643aa347ea69db05c595ed39caf (patch)
tree840fcdbc69b82dd947b7f4549c01be5146e19c26 /Source/Core/VideoBackends/OGL/OGLTexture.cpp
parent328585ef17386f3a27cae86c2863ede5a28971ef (diff)
Assert: Remove unused parameter from DEBUG_ASSERT
This brings the macro in line with the regular ASSERT macro, which only has one macro parameter.
Diffstat (limited to 'Source/Core/VideoBackends/OGL/OGLTexture.cpp')
-rw-r--r--Source/Core/VideoBackends/OGL/OGLTexture.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/Source/Core/VideoBackends/OGL/OGLTexture.cpp b/Source/Core/VideoBackends/OGL/OGLTexture.cpp
index bf77db0f6d..4ce9aa398c 100644
--- a/Source/Core/VideoBackends/OGL/OGLTexture.cpp
+++ b/Source/Core/VideoBackends/OGL/OGLTexture.cpp
@@ -279,11 +279,10 @@ void OGLTexture::ResolveFromTexture(const AbstractTexture* src,
const MathUtil::Rectangle<int>& rect, u32 layer, u32 level)
{
const OGLTexture* srcentry = static_cast<const OGLTexture*>(src);
- DEBUG_ASSERT(VIDEO, m_config.samples > 1 && m_config.width == srcentry->m_config.width &&
- m_config.height == srcentry->m_config.height && m_config.samples == 1);
- DEBUG_ASSERT(VIDEO,
- rect.left + rect.GetWidth() <= static_cast<int>(srcentry->m_config.width) &&
- rect.top + rect.GetHeight() <= static_cast<int>(srcentry->m_config.height));
+ DEBUG_ASSERT(m_config.samples > 1 && m_config.width == srcentry->m_config.width &&
+ m_config.height == srcentry->m_config.height && m_config.samples == 1);
+ DEBUG_ASSERT(rect.left + rect.GetWidth() <= static_cast<int>(srcentry->m_config.width) &&
+ rect.top + rect.GetHeight() <= static_cast<int>(srcentry->m_config.height));
BlitFramebuffer(const_cast<OGLTexture*>(srcentry), rect, layer, level, rect, layer, level);
}
@@ -655,7 +654,7 @@ std::unique_ptr<OGLFramebuffer> OGLFramebuffer::Create(const OGLTexture* color_a
}
}
- DEBUG_ASSERT(VIDEO, glCheckFramebufferStatus(GL_FRAMEBUFFER) == GL_FRAMEBUFFER_COMPLETE);
+ DEBUG_ASSERT(glCheckFramebufferStatus(GL_FRAMEBUFFER) == GL_FRAMEBUFFER_COMPLETE);
FramebufferManager::SetFramebuffer(0);
return std::make_unique<OGLFramebuffer>(color_format, depth_format, width, height, layers,
samples, fbo);