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:
parent
4fd2000459
commit
8f4d527a9c
7
VI.cpp
7
VI.cpp
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue
Block a user