mirror of
https://github.com/blawar/GLideN64.git
synced 2024-06-30 08:24: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:
parent
ccc8587367
commit
9e5564dc7c
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user