diff options
author | couriersud <couriersud@gmx.org> | 2019-11-24 17:07:09 +0100 |
---|---|---|
committer | Vas Crabb <vas@vastheman.com> | 2019-11-25 08:32:38 +1100 |
commit | a281c422ffdc8c123098ccd26cc3f0fe0654ef9d (patch) | |
tree | 1fcb65bdb08d2ba649049944b4d94cd2d3e7aa13 | |
parent | 08ae088175afad2feabbca3b1aa46bd8371730d7 (diff) |
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.
-rw-r--r-- | src/osd/modules/render/drawbgfx.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/osd/modules/render/drawbgfx.cpp b/src/osd/modules/render/drawbgfx.cpp index cfcb3d687ca..54b113ac146 100644 --- a/src/osd/modules/render/drawbgfx.cpp +++ b/src/osd/modules/render/drawbgfx.cpp @@ -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 } |