GPU: Fix incorrect bitmask for command primitives

pull/3745/head
Stenzek 4 months ago
parent 3dd7497f6a
commit d89476ad26
No known key found for this signature in database

@ -131,7 +131,7 @@ union GPURenderCommand
BitField<u32, bool, 27, 1> quad_polygon; // only for polygons
BitField<u32, bool, 27, 1> polyline; // only for lines
BitField<u32, bool, 28, 1> shading_enable; // 0 - flat, 1 = gouraud
BitField<u32, GPUPrimitive, 29, 21> primitive;
BitField<u32, GPUPrimitive, 29, 3> primitive;
/// Returns true if texturing should be enabled. Depends on the primitive type.
ALWAYS_INLINE bool IsTexturingEnabled() const { return (primitive != GPUPrimitive::Line) ? texture_enable : false; }

Loading…
Cancel
Save