GPU: Fix a bug on big-endian systems where setting the backdrop color could cause a crash.

This commit is contained in:
rogerman 2024-07-02 01:35:10 -07:00
parent fe0ae83c40
commit fc6ff8edbd
1 changed files with 1 additions and 1 deletions

View File

@ -848,7 +848,7 @@ void GPUEngineBase::UpdateRenderStates(const size_t l)
{
currRenderState.workingBackdropColor16 = currRenderState.backdropColor16;
}
currRenderState.workingBackdropColor32.value = LOCAL_TO_LE_32( (this->_targetDisplay->GetColorFormat() == NDSColorFormat_BGR666_Rev) ? COLOR555TO666(LOCAL_TO_LE_16(currRenderState.workingBackdropColor16)) : COLOR555TO888(LOCAL_TO_LE_16(currRenderState.workingBackdropColor16)) );
currRenderState.workingBackdropColor32.value = LOCAL_TO_LE_32( (this->_targetDisplay->GetColorFormat() == NDSColorFormat_BGR666_Rev) ? COLOR555TO666(currRenderState.workingBackdropColor16) : COLOR555TO888(currRenderState.workingBackdropColor16) );
// Save the current render states to this line's compositor info.
compInfo.renderState = currRenderState;