fix a bug, discard object before CreateRenderTarget
This commit is contained in:
parent
834b737e1a
commit
03354c62b9
@ -53,9 +53,10 @@ RenderTarget *Device::CreateRenderTarget( const uint w,const uint h,
|
||||
|
||||
if(cb)
|
||||
{
|
||||
color_texture_list.DiscardObject();
|
||||
RenderTarget *rt=new RenderTarget(this,fb,cb,color_texture_list,color_count,depth_texture,fence_count);
|
||||
|
||||
return(new RenderTarget(this,fb,cb,color_texture_list,color_count,depth_texture,fence_count));
|
||||
color_texture_list.DiscardObject();
|
||||
return rt;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user