How enable bgfx for Mame in Lutris?

Hello. How do I disable opengl for bgfx to work? I run the game by custom executable and bgfx doesn’t work. Without lutris, bgfx works.