Re: SDL_TEXTUREACCESS_STREAMING + window resize = crash

Kai Sterker <[email protected]>
Newsgroups gmane.comp.lib.sdl
Message-ID <CACtHX9xjEt_EyNH3j1UPVY3dP9AWABEerfg+99ViXSV8yznDHw@mail.gmail.com>
On Sun, Jul 24, 2016 at 6:57 PM, rsethc <[email protected]> wrote:

> I have noticed a very similar problem. (Windows 10, MinGW-w64, SDL 2.0.4
stable release)
>
> If any texture exists at the time the window is resized, that was created
by SDL_CreateTexture,
> no matter whether its access is SDL_TEXTUREACCESS_STREAMING or
> SDL_TEXTUREACCESS_STATIC, the app crashes due to a memory access
violation.

This looks like bug https://bugzilla.libsdl.org/show_bug.cgi?id=3147, which
was fixed with commit https://hg.libsdl.org/SDL/rev/17e0ded12e6f

Basically, it crashed on resize if there were any textures present that had
a non-native pixel format.

Kai

_______________________________________________
SDL mailing list
[email protected]
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.