Commit e7c4ab0c by Nicolas Capens

Fix light position transformation.

Change-Id: Ia12819357406c6ee98f0af2909d793cb62bfa62f Reviewed-on: https://swiftshader-review.googlesource.com/3510Reviewed-by: 's avatarAlexis Hétu <sugoi@google.com> Reviewed-by: 's avatarNicolas Capens <capn@google.com> Tested-by: 's avatarNicolas Capens <capn@google.com>
parent fe1269e4
......@@ -1753,7 +1753,7 @@ void Context::applyState(GLenum drawMode)
device->setEmissiveMaterialSource(sw::MATERIAL_MATERIAL);
device->setProjectionMatrix(projectionStack.current());
device->setModelMatrix(modelViewStack.current());
device->setViewMatrix(modelViewStack.current());
device->setTextureMatrix(0, textureStack0.current());
device->setTextureMatrix(1, textureStack1.current());
device->setTextureTransform(0, textureStack0.isIdentity() ? 0 : 4, false);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment