dep/reshadefx: Don't unconditionally emit point size variable
Metal compiler doesn't like it. And we're only using triangles at the moment anyway.
This commit is contained in:
parent
2bd9e5fbb1
commit
3ecaffd427
|
@ -1543,6 +1543,8 @@ private:
|
|||
emit_load(position, false)));
|
||||
}
|
||||
|
||||
#if 0
|
||||
// Disabled because it breaks on MacOS/Metal - point size should not be defined for a non-point primitive.
|
||||
// Add code that sets the point size to a default value (in case this vertex shader is used with point primitives)
|
||||
if (point_size_variable == 0 && func.type == shader_type::vertex)
|
||||
{
|
||||
|
@ -1554,6 +1556,7 @@ private:
|
|||
// gl_PointSize = 1.0
|
||||
emit_store(point_size, emit_constant({ type::t_float, 1, 1 }, 1));
|
||||
}
|
||||
#endif
|
||||
|
||||
leave_block_and_return(0);
|
||||
leave_function();
|
||||
|
|
Loading…
Reference in New Issue