1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-02 09:03:37 +00:00

Correct VI_UpdateSize() :

add check for buffer height == VI.height.

Fixed Mickey´s Speedway USA - Missing Textures #376
This commit is contained in:
Sergey Lipskiy 2015-04-11 22:48:43 +06:00
parent 4fd2000459
commit 8f4d527a9c

7
VI.cpp
View File

@ -68,7 +68,12 @@ void VI_UpdateSize()
FrameBufferList & fbList = frameBufferList();
FrameBuffer * pBuffer = fbList.findBuffer(VI.lastOrigin);
DepthBuffer * pDepthBuffer = pBuffer != NULL ? pBuffer->m_pDepthBuffer : NULL;
if (config.frameBufferEmulation.enable && ((interlacedPrev != VI.interlaced) || (VI.width > 0 && VI.width != VI.widthPrev) || (pDepthBuffer != NULL && pDepthBuffer->m_width != VI.width))) {
if (config.frameBufferEmulation.enable &&
((interlacedPrev != VI.interlaced) ||
(VI.width > 0 && VI.width != VI.widthPrev) ||
(pDepthBuffer != NULL && pDepthBuffer->m_width != VI.width) ||
(pBuffer != NULL && pBuffer->m_height != VI.height))
) {
fbList.removeBuffers(VI.widthPrev);
fbList.removeBuffers(VI.width);
depthBufferList().destroy();