Skip to content
  • Martin Storsjö's avatar
    d3d11_adjust: Pass a non-const pointer to atomic_load · e527a6f3
    Martin Storsjö authored and Steve Lhomme's avatar Steve Lhomme committed
    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);
                    ^           ~~~~~~~~~~~~~~~
    
    (cherry picked from commit c5161337)
    e527a6f3