From 2fbd30f9662095c6e53e961d4751df972821225e Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Fri, 19 Apr 2019 09:15:34 -0700 Subject: Updated core; fixed issue with swap chain format in D3D12 Unity emulator --- unityplugin/GhostCubeScene/src/GhostCubeScene.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'unityplugin/GhostCubeScene/src') diff --git a/unityplugin/GhostCubeScene/src/GhostCubeScene.cpp b/unityplugin/GhostCubeScene/src/GhostCubeScene.cpp index 4e64ab8..5eb205a 100644 --- a/unityplugin/GhostCubeScene/src/GhostCubeScene.cpp +++ b/unityplugin/GhostCubeScene/src/GhostCubeScene.cpp @@ -86,7 +86,7 @@ void GhostCubeScene::OnGraphicsInitialized() PSODesc.Name = "Mirror PSO"; PSODesc.GraphicsPipeline.NumRenderTargets = 1; - PSODesc.GraphicsPipeline.RTVFormats[0] = SCDesc.ColorBufferFormat == TEX_FORMAT_RGBA8_UNORM ? TEX_FORMAT_RGBA8_UNORM_SRGB : SCDesc.ColorBufferFormat; + PSODesc.GraphicsPipeline.RTVFormats[0] = SCDesc.ColorBufferFormat; PSODesc.GraphicsPipeline.DSVFormat = SCDesc.DepthBufferFormat; PSODesc.GraphicsPipeline.PrimitiveTopology = PRIMITIVE_TOPOLOGY_TRIANGLE_STRIP; PSODesc.GraphicsPipeline.RasterizerDesc.CullMode = CULL_MODE_BACK; -- cgit v1.2.3