- Fix linear filtering bug for sprites

This commit is contained in:
Magnus Norddahl 2017-04-13 22:16:26 +02:00
parent b1057cee36
commit d407aa3157
2 changed files with 2 additions and 2 deletions

View File

@ -126,7 +126,7 @@ namespace swrenderer
} }
int textureheight = args.TextureHeight(); int textureheight = args.TextureHeight();
uint32_t one = ((0x80000000 + textureheight - 1) / textureheight) * 2 + 1; uint32_t one = ((0x20000000 + textureheight - 1) / textureheight) * 2 + 1;
// Shade constants // Shade constants
BgraColor dynlight = args.DynamicLight(); BgraColor dynlight = args.DynamicLight();

View File

@ -126,7 +126,7 @@ namespace swrenderer
} }
int textureheight = args.TextureHeight(); int textureheight = args.TextureHeight();
uint32_t one = ((0x80000000 + textureheight - 1) / textureheight) * 2 + 1; uint32_t one = ((0x20000000 + textureheight - 1) / textureheight) * 2 + 1;
// Shade constants // Shade constants
__m128i dynlight = _mm_cvtsi32_si128(args.DynamicLight()); __m128i dynlight = _mm_cvtsi32_si128(args.DynamicLight());