From 2be83c13be5c26cbf990cbcf844cc9b4952d9c5d Mon Sep 17 00:00:00 2001 From: Scott Mansell Date: Thu, 17 Jul 2014 22:39:09 +1200 Subject: VideoSoftware: Use the same max XFB size as VideoCommon. And lets just use the same constant as videocommon, so if it ever increases (again) VideoSoftware will be automatically updated. --- Source/Core/VideoBackends/Software/SWRenderer.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Source/Core/VideoBackends/Software/SWRenderer.cpp') diff --git a/Source/Core/VideoBackends/Software/SWRenderer.cpp b/Source/Core/VideoBackends/Software/SWRenderer.cpp index fba685370c..f94fad595a 100644 --- a/Source/Core/VideoBackends/Software/SWRenderer.cpp +++ b/Source/Core/VideoBackends/Software/SWRenderer.cpp @@ -86,8 +86,8 @@ static void CreateShaders() void SWRenderer::Prepare() { - s_xfbColorTexture[0] = new u8[640*568*4]; - s_xfbColorTexture[1] = new u8[640*568*4]; + s_xfbColorTexture[0] = new u8[MAX_XFB_WIDTH*MAX_XFB_HEIGHT*4]; + s_xfbColorTexture[1] = new u8[MAX_XFB_WIDTH*MAX_XFB_HEIGHT*4]; s_currentColorTexture = 0; @@ -166,7 +166,7 @@ void SWRenderer::swapColorTexture() { void SWRenderer::UpdateColorTexture(EfbInterface::yuv422_packed *xfb, u32 fbWidth, u32 fbHeight) { - if (fbWidth*fbHeight > 640*568) { + if (fbWidth*fbHeight > MAX_XFB_WIDTH*MAX_XFB_HEIGHT) { ERROR_LOG(VIDEO, "Framebuffer is too large: %ix%i", fbWidth, fbHeight); return; } -- cgit v1.2.3