direct3d9: Fix compilation without OpenGL