small d3d fix (missing change from previous commit)