gl: reset texture scaling factor during bind
reset vertex textures as well
This commit is contained in:
@@ -425,6 +425,11 @@ void GLGSRender::end()
|
|||||||
|
|
||||||
glProgramUniform4f(m_program->id(), location, 1.f / width, 1.f / height, 1.f / depth, 1.0f);
|
glProgramUniform4f(m_program->id(), location, 1.f / width, 1.f / height, 1.f / depth, 1.0f);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
//This shader may have been re-used with a different texture config. Have to reset this
|
||||||
|
glProgramUniform4f(m_program->id(), location, 1.f, 1.f, 1.f, 1.f);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -458,6 +463,11 @@ void GLGSRender::end()
|
|||||||
|
|
||||||
glProgramUniform4f(m_program->id(), location, 1.f / width, 1.f / height, 1.f / depth, 1.0f);
|
glProgramUniform4f(m_program->id(), location, 1.f / width, 1.f / height, 1.f / depth, 1.0f);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
//This shader may have been re-used with a different texture config. Have to reset this
|
||||||
|
glProgramUniform4f(m_program->id(), location, 1.f, 1.f, 1.f, 1.f);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user