From 2cefd1685035023009dc3582290ed6d4dbb7189f Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sat, 18 Apr 2020 20:42:37 -0400 Subject: [PATCH] primitive_assembly: Mark constructor explicit Prevents any implicit constructions from occurring, given the constructor isn't a converting constructor. --- src/video_core/primitive_assembly.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video_core/primitive_assembly.h b/src/video_core/primitive_assembly.h index c650646db2..1f4f25af22 100644 --- a/src/video_core/primitive_assembly.h +++ b/src/video_core/primitive_assembly.h @@ -20,7 +20,7 @@ struct PrimitiveAssembler { using TriangleHandler = std::function; - PrimitiveAssembler( + explicit PrimitiveAssembler( PipelineRegs::TriangleTopology topology = PipelineRegs::TriangleTopology::List); /*