SDL_TEXTUREACCESS_STREAMING + window resize = crash |
capehill
|
Which renderer you are using/getting? (you can query this information from renderer object)
|
|||||||||||
|
rsethc
|
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. Textures created by SDL_CreateTextureFromSurface do *not* cause this problem. The problem only occurs with the DirectX renderer. The OpenGL renderer and software renderer do not have this issue. |
|||||||||||
|
SDL_TEXTUREACCESS_STREAMING + window resize = crash |
Kai Sterker
Guest
|
On Sun, Jul 24, 2016 at 6:57 PM, rsethc wrote:
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 |
|||||||||||||
|