[D3D12] Don't cull points and rectangles

This commit is contained in:
Triang3l 2019-01-09 16:25:03 +03:00
parent 8ad12480a4
commit d7ed044be1
1 changed files with 7 additions and 1 deletions

View File

@ -453,7 +453,13 @@ bool PipelineCache::GetCurrentStateDescription(
}
// Rasterizer state.
uint32_t cull_mode = pa_su_sc_mode_cntl & 0x3;
uint32_t cull_mode;
if (primitive_type == PrimitiveType::kPointList ||
primitive_type == PrimitiveType::kRectangleList) {
cull_mode = 0;
} else {
cull_mode = pa_su_sc_mode_cntl & 0x3;
}
if (cull_mode & 1) {
// More special, so checked first - generally back faces are culled.
description_out.cull_mode = PipelineCullMode::kFront;