GPU: Texture bit should be ignored when drawing lines

Fixes line flickering in Vagrant Story.
This commit is contained in:
Connor McLaughlin
2020-02-07 00:10:36 +09:00
parent d67133b537
commit 7e862cd63e
2 changed files with 5 additions and 2 deletions

View File

@ -208,7 +208,10 @@ protected:
BitField<u32, bool, 28, 1> shading_enable; // 0 - flat, 1 = gouroud
BitField<u32, Primitive, 29, 21> primitive;
// Returns true if dithering should be enabled. Depends on the primitive type.
/// Returns true if texturing should be enabled. Depends on the primitive type.
bool IsTexturingEnabled() const { return (primitive != Primitive::Line) ? texture_enable : false; }
/// Returns true if dithering should be enabled. Depends on the primitive type.
bool IsDitheringEnabled() const
{
switch (primitive)