fix a but, it doesn't disable Depth AttachmentDescription at RenderPass

This commit is contained in:
2020-10-20 18:26:02 +08:00
parent 5972d075b3
commit 3c01881a6b
3 changed files with 13 additions and 7 deletions

View File

@@ -64,7 +64,7 @@ public:
bool InitOffscreen()
{
os.render_taget=device->CreateRenderTarget(OFFSCREEN_SIZE,OFFSCREEN_SIZE,UFMT_RGBA8,FMT_D16UN);
os.render_taget=device->CreateColorRenderTarget(OFFSCREEN_SIZE,OFFSCREEN_SIZE,UFMT_RGBA8);
if(!os.render_taget)return(false);
os.material_instance=db->CreateMaterialInstance(OS_TEXT("res/material/VertexColor2D"));