summaryrefslogtreecommitdiffstats
path: root/.travis.yml
diff options
context:
space:
mode:
authorNiklas Haas <git@haasn.xyz>2018-09-29 02:20:56 +0200
committersfan5 <sfan5@live.de>2018-09-29 20:15:10 +0200
commit730469cb29e96595adeaed46dd9b0c9c3386751e (patch)
tree3ff775ca5df05a764224e7af7480b8cb77b43865 /.travis.yml
parent39d10e33595847e576b6b1c1379ba8d3f27d9323 (diff)
downloadmpv-730469cb29e96595adeaed46dd9b0c9c3386751e.tar.bz2
mpv-730469cb29e96595adeaed46dd9b0c9c3386751e.tar.xz
vo_gpu: fix vec3 packing in UBOs/push_constants
For vec3, the alignment and size differ. The current code will pack a struct like { vec3; float; vec2 } into 8 machine words, whereas the spec would only use 6. This actually fixes a real bug: The only place in the code I could find where it was conceivably possible that a vec3 is followed by a float was when using --gpu-dumb-mode in combination with --gamma-factor, and only when --gpu-api=vulkan. So it's no surprised nobody ran into it yet.
Diffstat (limited to '.travis.yml')
0 files changed, 0 insertions, 0 deletions