mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
samplerjit: Correct nearest negative texture clamp.
Was not clamping to zero when negative.
This commit is contained in:
parent
e1eb4ba94a
commit
df1a91ee25
1 changed files with 2 additions and 2 deletions
|
@ -2626,7 +2626,7 @@ bool SamplerJitCache::Jit_GetTexelCoords(const SamplerID &id) {
|
|||
CVTTPS2DQ(sReg, R(sReg));
|
||||
regCache_.Release(sizesReg, RegCache::VEC_TEMP0);
|
||||
|
||||
PSRLD(sReg, 8);
|
||||
PSRAD(sReg, 8);
|
||||
|
||||
// Reuse tempXYReg for the level1 values.
|
||||
if (!cpu_info.bSSE4_1)
|
||||
|
@ -2685,7 +2685,7 @@ bool SamplerJitCache::Jit_GetTexelCoords(const SamplerID &id) {
|
|||
MULPS(sReg, M(constWidthHeight256f_));
|
||||
CVTTPS2DQ(sReg, R(sReg));
|
||||
// Great, shift out the fraction.
|
||||
PSRLD(sReg, 8);
|
||||
PSRAD(sReg, 8);
|
||||
|
||||
// Square textures are kinda common.
|
||||
bool clampApplied = false;
|
||||
|
|
Loading…
Add table
Reference in a new issue