diff options
author | Adam Jackson <ajax@redhat.com> | 2019-09-19 13:50:12 -0400 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2019-09-19 20:50:01 -0400 |
commit | b4fe0b3ffd825284aa57072c67a019fbc1bf4a1b (patch) | |
tree | d63475b141c6c4321c6aee87812dfe4341c82fee /src/glx/dri_common_interop.c | |
parent | 317a88b9204d43d71531b0f7ff8d81b334642faa (diff) | |
download | mesa-b4fe0b3ffd825284aa57072c67a019fbc1bf4a1b.tar.gz |
glx: Avoid atof() when computing the server's GLX version
atof() is locale-dependent (sigh), which means 1.3 becomes 1.0 if the
locale's decimal separator isn't a full-stop. Just use the protocol
major/minor instead. This would be slightly broken if the server
generically implements 1.3+ but a particular screen is only capable of
less, but in practice no such servers exist.
Gitlab: https://gitlab.freedesktop.org/mesa/mesa/issues/74
Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
Diffstat (limited to 'src/glx/dri_common_interop.c')
0 files changed, 0 insertions, 0 deletions