summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd
diff options
context:
space:
mode:
authorGravatarGravatar couriersud <couriersud@gmx.org>2019-11-24 17:07:09 +0100
committerGravatarGravatar couriersud <couriersud@gmx.org>2019-11-24 17:07:09 +0100
commit2e5617dff2e3da19272b383cf10ca979538ba401 (patch)
treed4ee29872a385001d77c09015ee0750b4c4a9f50 /src/osd
parentf8252286db95a36c8448256aebee984ee1eb2f8b (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.
Diffstat (limited to 'src/osd')
-rw-r--r--src/osd/modules/render/drawbgfx.cpp3
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
}