GPU: The internal buffer for custom-sized layer IDs is now cleared in its entirety, rather than just most of it.

This commit is contained in:
rogerman 2021-09-13 19:30:47 -07:00
parent fffa7ebb8c
commit a5b25313f8
1 changed files with 1 additions and 1 deletions

2
desmume/src/GPU.cpp Executable file → Normal file
View File

@ -812,7 +812,7 @@ void GPUEngineBase::SetupBuffers()
{
if (this->_renderLineLayerIDCustom != NULL)
{
memset(this->_renderLineLayerIDCustom, GPULayerID_Backdrop, dispInfo.customWidth * dispInfo.customHeight * sizeof(u8));
memset(this->_renderLineLayerIDCustom, GPULayerID_Backdrop, dispInfo.customWidth * (dispInfo.customHeight + (_gpuLargestDstLineCount * 4)) * sizeof(u8));
}
}
}