1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-07 03:13:49 +00:00

Move primLOD uniform variable initialization from UpdateColors to UpdateTextureInfo.

This commit is contained in:
Sergey Lipskiy 2014-04-02 22:26:20 +07:00
parent 7787518fc6
commit 7790ddb9f0

View File

@ -568,7 +568,6 @@ void GLSLCombiner::UpdateRenderState(bool _bForce) {
void GLSLCombiner::UpdateColors(bool _bForce) {
_setV4Uniform(m_uniforms.uEnvColor, &gDP.envColor.r, _bForce);
_setV4Uniform(m_uniforms.uPrimColor, &gDP.primColor.r, _bForce);
_setFUniform(m_uniforms.uPrimLod, gDP.primColor.l, _bForce);
_setV4Uniform(m_uniforms.uFogColor, &gDP.fogColor.r, _bForce);
_setV4Uniform(m_uniforms.uCenterColor, &gDP.key.center.r, _bForce);
_setV4Uniform(m_uniforms.uScaleColor, &gDP.key.scale.r, _bForce);
@ -631,6 +630,7 @@ void GLSLCombiner::UpdateTextureInfo(bool _bForce) {
}
}
_setIV2Uniform(m_uniforms.uCacheFrameBuffer, nFB0, nFB1, _bForce);
_setFUniform(m_uniforms.uPrimLod, gDP.primColor.l, _bForce);
}
void GLSLCombiner::UpdateFBInfo(bool _bForce) {