From 84ae8f035ca1dd0a44fb95df6abeb1dc9ce16a2d Mon Sep 17 00:00:00 2001 From: Ian Curtis Date: Mon, 21 Nov 2016 09:04:56 +0000 Subject: [PATCH] Skip processing the mipmap section of memory. The real3d doesn't create mipmaps down to 1x1 that is needed to do mipmapping properly on modern hardware anyway. --- Src/Graphics/New3D/New3D.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Src/Graphics/New3D/New3D.cpp b/Src/Graphics/New3D/New3D.cpp index 3e19357..aba8cc7 100644 --- a/Src/Graphics/New3D/New3D.cpp +++ b/Src/Graphics/New3D/New3D.cpp @@ -78,6 +78,12 @@ bool CNew3D::Init(unsigned xOffset, unsigned yOffset, unsigned xRes, unsigned yR void CNew3D::UploadTextures(unsigned x, unsigned y, unsigned width, unsigned height) { + if (x >= 1024) { + if (y >= 512 && y < 1024 || y >= 1536 && y < 2048) { + return; + } + } + m_texSheet.Invalidate(x, y, width, height); }