Merge pull request #3287 from stenzek/d3d-texture-crash D3D: Fix crash on some drivers with small textures