mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-02 09:03:37 +00:00
Add check for NULL pointers in FrameBuffer_ActivateBufferTexture.
This commit is contained in:
parent
cdcffd9077
commit
39cbd870ff
|
@ -471,6 +471,8 @@ void FrameBufferList::renderBuffer(u32 _address)
|
|||
|
||||
void FrameBuffer_ActivateBufferTexture(s16 t, FrameBuffer *pBuffer)
|
||||
{
|
||||
if (pBuffer == NULL || pBuffer->m_pTexture == NULL)
|
||||
return;
|
||||
pBuffer->m_pTexture->scaleS = video().getScaleX() / (float)pBuffer->m_pTexture->realWidth;
|
||||
pBuffer->m_pTexture->scaleT = video().getScaleY() / (float)pBuffer->m_pTexture->realHeight;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user