Re: Weird behaviour on the Raspberry Pi
"rtrussell" <[email protected]>
| Newsgroups | gmane.comp.lib.sdl |
|---|---|
| Message-ID | <[email protected]> |
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: Code: SDL_SetRenderTarget(renderer, NULL); SDL_SetRenderDrawColor(renderer, 0, 0, 0, 255); SDL_RenderClear(renderer); SDL_RenderCopy(renderer, texture3, NULL, NULL); SDL_RenderPresent(renderer); Richard. _______________________________________________ SDL mailing list [email protected] http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org