[SDL] Weird behaviour on the Raspberry Pi
andreas at falkenhahn.com
Thu Sep 29 08:16:54 PDT 2016
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.
Andreas Falkenhahn mailto:andreas at falkenhahn.com
More information about the SDL