fix the segfault
This commit is contained in:
@@ -31,21 +31,21 @@ impl SphereTapeBuilder {
|
||||
let pos = tape.push_instruction(
|
||||
SSAOpcodeSized {
|
||||
opcode: SSAOpcode::SSAPosition,
|
||||
size: 1,
|
||||
size: 1,
|
||||
},
|
||||
vec![],
|
||||
);
|
||||
let sphere = tape.push_instruction(
|
||||
SSAOpcodeSized {
|
||||
opcode: SSAOpcode::SSASDFSphere,
|
||||
size: 1,
|
||||
size: 1,
|
||||
},
|
||||
vec![pos[0], pos[1], pos[2], SSAInput::Constant(radius)],
|
||||
);
|
||||
tape.push_instruction(
|
||||
SSAOpcodeSized {
|
||||
opcode: SSAOpcode::SSAReturn,
|
||||
size: 1,
|
||||
size: 1,
|
||||
},
|
||||
sphere,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user