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.

This commit is contained in:
Ian Curtis 2016-11-21 09:04:56 +00:00
parent 2ddc8a30e0
commit 84ae8f035c

View file

@ -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);
}