Re: Weird behaviour on the Raspberry Pi
Andreas Falkenhahn <[email protected]>
| Newsgroups | gmane.comp.lib.sdl |
|---|---|
| Message-ID | <[email protected]> |
Filed this now as https://bugzilla.libsdl.org/show_bug.cgi?id=3455 because it clearly seems to be a bug in the Raspi backend. On 29.09.2016 at 17:16 Andreas Falkenhahn wrote: > 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]