Can we make this a conditional compile instead of a ifdef in every backend?

Also, should be conditional to CONFIG_GL or something instead of CONFIG_XBOX.