mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-15 19:28:43 +12:00
rsx: Fix interpreter texture fetch
This commit is contained in:
parent
f807ebf9ba
commit
daa8265a47
1 changed files with 2 additions and 2 deletions
|
@ -308,7 +308,7 @@ vec4 _texture(in vec4 coord, float bias)
|
|||
|
||||
ur1 = ur0 + ur0;
|
||||
const uint type = bitfieldExtract(texture_control, int(ur1), 2);
|
||||
coord.xy *= texture_parameters[ur0].scale;
|
||||
coord.xyz = (coord.xyz + texture_parameters[ur0].scale_bias.w) * texture_parameters[ur0].scale_bias.xyz;
|
||||
|
||||
switch (type)
|
||||
{
|
||||
|
@ -340,7 +340,7 @@ vec4 _textureLod(in vec4 coord, float lod)
|
|||
|
||||
ur1 = ur0 + ur0;
|
||||
const uint type = bitfieldExtract(texture_control, int(ur1), 2);
|
||||
coord.xy *= texture_parameters[ur0].scale;
|
||||
coord.xyz = (coord.xyz + texture_parameters[ur0].scale_bias.w) * texture_parameters[ur0].scale_bias.xyz;
|
||||
|
||||
switch (type)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue