d3d11_adjust: Pass a non-const pointer to atomic_load
authorMartin Storsjö <martin@martin.st>
Fri, 15 Dec 2017 21:49:15 +0000 (23:49 +0200)
committerMartin Storsjö <martin@martin.st>
Mon, 19 Feb 2018 19:39:22 +0000 (21:39 +0200)
commitc51613372b52f5ae6039be67191b4b511a35e798
tree9b5352f3b6061fcc50f6b3e28e13e01fc09e8824
parent7ada256b0e303d4abc7f678f96507ee327de4197
d3d11_adjust: Pass a non-const pointer to atomic_load

This fixes compilation with clang, which previously errored
out with this message:

error: address argument to atomic operation must be a pointer to non-const _Atomic
      type ('const atomic_int *' (aka 'const _Atomic(int) *') invalid)
    int level = atomic_load(&p_level->level);
                ^           ~~~~~~~~~~~~~~~
modules/hw/d3d11/d3d11_filters.c