Merge pull request #2364 from kayru/d3d_texture_bsf D3D: StateManager::Apply no longer iterates through every texture and sampler slot