1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-06-27 23:14:05 +00:00

Make FBInfo working when when "copy to RDRAM" option is disabled.

By design, FBInfo should control all copies from/to RDRAM.
When it is enabled, other options should be disabled.
IN practice it does not always work yet.
This commit is contained in:
Sergey Lipskiy 2022-02-19 21:39:28 +07:00
parent ccc8587367
commit 9e5564dc7c
3 changed files with 3 additions and 3 deletions

View File

@ -236,7 +236,7 @@ void ColorBufferToRDRAM::copyToRDRAM(u32 _address, bool _sync)
return;
if (!_prepareCopy(_address))
return;
if (config.frameBufferEmulation.copyToRDRAM == Config::CopyToRDRAM::ctDisable)
if (config.frameBufferEmulation.copyToRDRAM == Config::CopyToRDRAM::ctDisable && config.frameBufferEmulation.fbInfoDisabled != 0)
return;
const u32 numBytes = (m_pCurFrameBuffer->m_width*m_pCurFrameBuffer->m_height) << m_pCurFrameBuffer->m_size >> 1;

View File

@ -19,7 +19,7 @@ ColorBufferReaderWithBufferStorage::~ColorBufferReaderWithBufferStorage()
void ColorBufferReaderWithBufferStorage::_initBuffers()
{
m_numPBO = config.frameBufferEmulation.copyToRDRAM;
m_numPBO = std::max(1u, config.frameBufferEmulation.copyToRDRAM);
if (m_numPBO > _maxPBO)
m_numPBO = _maxPBO;

View File

@ -28,7 +28,7 @@ void ColorBufferReaderWithPixelBuffer::_destroyBuffers()
void ColorBufferReaderWithPixelBuffer::_initBuffers()
{
m_numPBO = config.frameBufferEmulation.copyToRDRAM;
m_numPBO = std::max(1u, config.frameBufferEmulation.copyToRDRAM);
if (m_numPBO > _maxPBO)
m_numPBO = _maxPBO;