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

Correct texturedRectCopyToItself - apply it only for 8bit frame buffers.

This commit is contained in:
Sergey Lipskiy 2015-04-24 13:35:33 +06:00
parent cccd738086
commit 7eb8e46e12

View File

@ -836,7 +836,8 @@ bool texturedRectDepthBufferCopy(const OGLRender::TexturedRectParams & _params)
static
bool texturedRectCopyToItself(const OGLRender::TexturedRectParams & _params)
{
if (gSP.textureTile[0]->frameBuffer == frameBufferList().getCurrent())
FrameBuffer * pCurrent = frameBufferList().getCurrent();
if (pCurrent != NULL && pCurrent->m_size == G_IM_SIZ_8b && gSP.textureTile[0]->frameBuffer == pCurrent)
return true;
return texturedRectDepthBufferCopy(_params);
}