title: SDL2 Transparency is super glitchy
body: <p>(Source code and problem line at the bottom)</p>
  <p>I made a simple program to load a transparent PNG onto SDL2. However, it pops up as the image, with a very glitchy background that keeps flashing.</p>
  <p><a href="https://i.stack.imgur.com/4AxRy.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4AxRy.png" alt="enter image description here" /></a></p>
  <p>I suspect this is a problem with my graphics card (M2 Macbook Air), but I do not know how to fix this. I think this because the issue goes away after I disable hardware acceleration when creating my SDL renderer.</p>
  <pre class="lang-cpp prettyprint-override"><code>// Issue goes away if I change the '0' in this line to SDL_RENDERER_SOFTWARE
  SDL_Renderer * renderer = SDL_CreateRenderer(window, -1, 0);
  </code></pre>
  <p>My full source code can be found at <a href="https://pastebin.com/XqRxXmyt" rel="nofollow noreferrer">https://pastebin.com/XqRxXmyt</a>. My compile command can also be found at <a href="https://pastebin.com/a3YbGnLN" rel="nofollow noreferrer">https://pastebin.com/a3YbGnLN</a> (I am statically linking my program). How can I fix this transparency issue?</p>