bgfx: Fix edge case around B/C/G settings. [Couriersud]

If e.g. kidniki is started with default gamma (1.0), changing gamma with
slider doesn't work. Setting to a gamma <> 1 and restarting MAME will
apply the gamma. This commit fixes this.
This commit is contained in:
couriersud 2019-11-24 17:07:09 +01:00
parent f8252286db
commit 2e5617dff2

View File

@ -1200,7 +1200,8 @@ uint32_t renderer_bgfx::get_texture_hash(render_primitive *prim)
}
return hash;
#else
return (reinterpret_cast<size_t>(prim->texture.base)) & 0xffffffff;
//return (reinterpret_cast<size_t>(prim->texture.base)) & 0xffffffff;
return (reinterpret_cast<size_t>(prim->texture.base) ^ reinterpret_cast<size_t>(prim->texture.palette)) & 0xffffffff;
#endif
}