Renderer: Fixed bug in caps hash computation, fixed wrong use
of (potentially) incorrect material in Mesh.render().