use new RenderTarget construct function.

This commit is contained in:
hyzboy 2020-10-18 18:01:55 +08:00
parent a28e7c3eca
commit 7e2a7bf702

View File

@ -53,7 +53,7 @@ RenderTarget *Device::CreateRenderTarget( const uint w,const uint h,
if(cb)
{
RenderTarget *rt=new RenderTarget(this,fb,cb,color_texture_list,color_count,depth_texture,fence_count);
RenderTarget *rt=new RenderTarget(this,rp,fb,cb,color_texture_list,color_count,depth_texture,fence_count);
color_texture_list.DiscardObject();
return rt;