rsx/gl: Addendum - Fix fragment shader to consume texture scale parameters

This commit is contained in:
kd-11 2017-11-02 19:12:08 +03:00
parent 0961a43997
commit fbb7186e66
2 changed files with 11 additions and 8 deletions

View file

@ -177,7 +177,7 @@ namespace
if (prog.unnormalized_coords & (1 << index))
OS << "\t" << vec_type << " tex" << index << "_coord_scale = texture_parameters[" << index << "].xy / textureSize(tex" << index << ", 0);\n";
else
OS << "\t" << vec_type << " tex" << index << "_coord_scale = " << vec_type << "(1.);\n";
OS << "\t" << vec_type << " tex" << index << "_coord_scale = texture_parameters[" << index << "].xy;\n";
}
std::string insert_texture_fetch(const RSXFragmentProgram& prog, int index)