Re: Weird behaviour on the Raspberry Pi
Andreas Falkenhahn <[email protected]>
| Newsgroups | gmane.comp.lib.sdl |
|---|---|
| Message-ID | <[email protected]> |
On 28.09.2016 at 18:44 Jonathan Dearborn wrote: > Can you simplify this example with fewer textures and RTT calls and still get this behavior? It works correctly when disabling scaling, i.e. changing the following line texture3 = SDL_CreateTexture(renderer, SDL_PIXELFORMAT_ARGB8888, SDL_TEXTUREACCESS_TARGET, w, w); into this line texture3 = SDL_CreateTexture(renderer, SDL_PIXELFORMAT_ARGB8888, SDL_TEXTUREACCESS_TARGET, 640, 480); solves the problem and there is no alternation between red and black screens any more. The problem only seems to appear when the dimensions of texture3 and texture2 don't match, i.e. when SDL_RenderCopy() needs to scale-copy texture2 to texture3 instead of just copying it without the involvement of scaling. -- Best regards, Andreas Falkenhahn mailto:[email protected]