do you have mame set to create individual ini files per game when ever you launch them? If so try deleting the game specific ini files for those if you don't have it configured like that then I don't know what to suggest except try maybe setting a different video drive in the MAME ini it is by default set to auto which I believe uses d3d.