mirror of https://github.com/aap/librw.git
fbo fix
This commit is contained in:
parent
edc77742c5
commit
ee2a32e142
|
@ -427,7 +427,6 @@ bindTexture(uint32 texid)
|
|||
void
|
||||
bindFramebuffer(uint32 fbo)
|
||||
{
|
||||
//glBindFramebuffer(GL_FRAMEBUFFER, fbo);
|
||||
if(currentFramebuffer != fbo){
|
||||
glBindFramebuffer(GL_FRAMEBUFFER, fbo);
|
||||
currentFramebuffer = fbo;
|
||||
|
|
|
@ -527,6 +527,12 @@ destroyNativeRaster(void *object, int32 offset, int32)
|
|||
break;
|
||||
|
||||
case Raster::CAMERA:
|
||||
if(natras->fboMate){
|
||||
// Break apart from currently associated zbuffer
|
||||
Gl3Raster *zras = PLUGINOFFSET(Gl3Raster, natras->fboMate, offset);
|
||||
zras->fboMate = nil;
|
||||
natras->fboMate = nil;
|
||||
}
|
||||
break;
|
||||
}
|
||||
natras->texid = 0;
|
||||
|
|
Loading…
Reference in New Issue