mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-29 20:20:24 +01:00
rgtc: fix fetch function limits for signed types
This commit is contained in:
parent
8eebd216dd
commit
ff0f36f59d
1 changed files with 2 additions and 2 deletions
|
|
@ -364,9 +364,9 @@ static void _fetch_texel_rgtc_s(GLint srcRowStride, const GLbyte *pixdata,
|
|||
else if (code < 6)
|
||||
decode = ((alpha0 * (6 - code) + (alpha1 * (code - 1))) / 5);
|
||||
else if (code == 6)
|
||||
decode = -128;
|
||||
decode = -127;
|
||||
else
|
||||
decode = 127;
|
||||
decode = 128;
|
||||
|
||||
*value = decode;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue