gl: sampler2d are constants

This commit is contained in:
vlj 2015-06-05 00:44:27 +02:00 committed by Vincent Lejeune
parent ca90c05b0a
commit c3e19f34fa

View file

@ -155,6 +155,8 @@ void GLFragmentProgram::Decompile(RSXFragmentProgram& prog)
{
for (const ParamItem PI : PT.items)
{
if (PT.type == "sampler2D")
continue;
size_t offset = atoi(PI.name.c_str() + 2);
FragmentConstantOffsetCache.push_back(offset);
}