https://bugs.winehq.org/show_bug.cgi?id=45373
Matteo Bruni matteo.mystral@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|map does not display in |Minimap does not display in |Battle Realms |Battle Realms Ever confirmed|0 |1 Status|UNCONFIRMED |NEW
--- Comment #10 from Matteo Bruni matteo.mystral@gmail.com --- Thanks for the bug report. I think I see what's going on.
The game draws the minimap with z == 0.00009 and then draws the interface with z == 0.0001. On (only some, apparently) Nvidia GPUs / drivers, both get mapped to the value 0x6 in the GL_DEPTH_COMPONENT16 (16-bit fixed point) format thus the minimap is overdrawn. For comparison, on AMD I get the latter mapped to 0x7, which means the interface isn't drawn over the minimap. The GL spec says that [the conversion must pick] "one of the two unsigned binary integer values with exactly b bits which are closest to the floating-point value r (where rounding to nearest is preferred)." It looks like the two representable values closest to 0.0001 are 0.0000915541 (0x6) and 0.000106813 (0x7), so Nvidia's behavior is valid, although not helpful in this case.
Not sure where to go from here. We could - report the bug to Nvidia anyway: I don't think the chances of getting a "fix" are too high - revert the change: I don't think that's a good idea, there might as well be bugs fixed by the same commit for similar reasons - add some kind of registry setting to override the 16-bit depth formats back to 24-bit: needs to be manually set, I'm not sure if it's worth the pain