gpu: primitive_restart bit check typo (#454)
This commit is contained in:
parent
154771cca5
commit
ff33b00c3a
|
@ -165,8 +165,8 @@ void PipelineCache::RefreshGraphicsKey() {
|
||||||
key.stencil_ref_front = regs.stencil_ref_front;
|
key.stencil_ref_front = regs.stencil_ref_front;
|
||||||
key.stencil_ref_back = regs.stencil_ref_back;
|
key.stencil_ref_back = regs.stencil_ref_back;
|
||||||
key.prim_type = regs.primitive_type;
|
key.prim_type = regs.primitive_type;
|
||||||
key.enable_primitive_restart = regs.enable_primitive_restart;
|
key.enable_primitive_restart = regs.enable_primitive_restart & 1;
|
||||||
key.primitive_restart_index = regs.primitive_restart_index & 1;
|
key.primitive_restart_index = regs.primitive_restart_index;
|
||||||
key.polygon_mode = regs.polygon_control.PolyMode();
|
key.polygon_mode = regs.polygon_control.PolyMode();
|
||||||
key.cull_mode = regs.polygon_control.CullingMode();
|
key.cull_mode = regs.polygon_control.CullingMode();
|
||||||
key.clip_space = regs.clipper_control.clip_space;
|
key.clip_space = regs.clipper_control.clip_space;
|
||||||
|
|
Loading…
Reference in New Issue