mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-07 03:13:49 +00:00
Correct FrameBufferList::saveBuffer :
disable draw to FBO if new buffer can't be saved because of wrong buffer size
This commit is contained in:
parent
6ad1d1d3a5
commit
702a0d8203
|
@ -441,8 +441,11 @@ FrameBuffer * FrameBufferList::findTmpBuffer(u32 _address)
|
||||||
|
|
||||||
void FrameBufferList::saveBuffer(u32 _address, u16 _format, u16 _size, u16 _width, u16 _height, bool _cfb)
|
void FrameBufferList::saveBuffer(u32 _address, u16 _format, u16 _size, u16 _width, u16 _height, bool _cfb)
|
||||||
{
|
{
|
||||||
if (VI.width == 0 || _height == 0)
|
if (VI.width == 0 || _height == 0) {
|
||||||
|
m_pCurrent = NULL;
|
||||||
|
glBindFramebuffer(GL_DRAW_FRAMEBUFFER, 0);
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
OGLVideo & ogl = video();
|
OGLVideo & ogl = video();
|
||||||
if (m_pCurrent != NULL) {
|
if (m_pCurrent != NULL) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user