mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 04:08:55 +00:00
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.
This commit is contained in:
parent
705afc70b6
commit
2be83c13be
2 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue