mirror of
https://github.com/holub/mame
synced 2025-04-20 15:32:45 +03:00
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:
parent
f8252286db
commit
2e5617dff2
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user