!B (CE-14922) (Renderer) Fixes low spec crash in the editor. The resources of color...
commitb628cb558afbbe21a146d89609fd441a25e782fe
authorMorteza Mostajab <seyedmorteza@crytek.com>
Mon, 29 Jan 2018 12:02:27 +0000 (29 13:02 +0100)
committerMorteza Mostajab <seyedmorteza@crytek.com>
Mon, 29 Jan 2018 12:02:27 +0000 (29 13:02 +0100)
treeb0a95251377614b3cc0c7d66150cd6a5566c3409
parent4567913ec6a9dca9ece85bfe0192d61e8f46c24a
!B (CE-14922) (Renderer) Fixes low spec crash in the editor. The resources of color grading render pass's primitive are dirty and the updates need to be applied before executing the pass otherwise the old resource view is used which is invalid and causing the crash. An assert is added to the primitive render pass execution which is triggered when render pass's primitives are dirty.

Copied from Perforce
 Change: 1644463
Code/CryEngine/RenderDll/XRenderD3D9/GraphicsPipeline/ColorGrading.cpp
Code/CryEngine/RenderDll/XRenderD3D9/GraphicsPipeline/ColorGrading.h
Code/CryEngine/RenderDll/XRenderD3D9/GraphicsPipeline/Common/PrimitiveRenderPass.cpp
Code/CryEngine/RenderDll/XRenderD3D9/GraphicsPipeline/Common/PrimitiveRenderPass.h