File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
ZEngine/ZEngine/Rendering/Renderers Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -391,13 +391,11 @@ namespace ZEngine::Rendering::Renderers
391391 auto temp_handle = Renderer->Device ->GlobalTextures .Create ();
392392 auto texture_to_dispose = Renderer->Device ->GlobalTextures .Access (resource.ResourceInfo .TextureHandle );
393393 Renderer->Device ->GlobalTextures .Update (temp_handle, *texture_to_dispose);
394- Renderer->Device ->GlobalTextures .Remove (temp_handle);
395394
395+ Renderer->Device ->GlobalTextures .Remove (resource.ResourceInfo .TextureHandle );
396396 resource.ResourceInfo .TextureSpec .Width = width;
397397 resource.ResourceInfo .TextureSpec .Height = height;
398- auto tex_handle = Renderer->CreateTexture (resource.ResourceInfo .TextureSpec );
399- Renderer->Device ->GlobalTextures .Update (resource.ResourceInfo .TextureHandle , *Renderer->Device ->GlobalTextures .Access (tex_handle));
400- Renderer->Device ->GlobalTextures .Remove (tex_handle);
398+ resource.ResourceInfo .TextureHandle = Renderer->CreateTexture (resource.ResourceInfo .TextureSpec );
401399
402400 if ((output.Name == Renderer->FrameColorRenderTargetName ) || (output.Name == Renderer->FrameDepthRenderTargetName ))
403401 {
You can’t perform that action at this time.
0 commit comments