[PATCH] d3d10: Avoid casts from COM object to interface