[SDL] Weird behaviour on the Raspberry Pi
news at rtrussell.co.uk
Wed Sep 28 08:59:48 PDT 2016
Andreas Falkenhahn wrote:
> Is that a bug in my code or in SDL's Pi backend?
One thing I would question is that there's no SDL_RenderClear(). The docs say "You are strongly encouraged to call SDL_RenderClear() to initialize the backbuffer before starting each new frame's drawing". Does it make any difference if you change it as follows:
SDL_SetRenderDrawColor(renderer, 0, 0, 0, 255);
SDL_RenderCopy(renderer, texture3, NULL, NULL);
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the SDL