mirror of
https://github.com/holub/mame
synced 2025-06-11 07:14:07 +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
08ae088175
commit
a281c422ff
@ -1200,7 +1200,8 @@ uint32_t renderer_bgfx::get_texture_hash(render_primitive *prim)
|
|||||||
}
|
}
|
||||||
return hash;
|
return hash;
|
||||||
#else
|
#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
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user