SDL 2 destoys textures in GL when resizing?

Hi there.

So we all know that SDL 1.2 when we call SDL_SetVideoMode it destroys the context thus making you reload all your textures.
I was wondering if SDL 2 has the same problem/caveat ?

Also, I’m wondering if SDL 2 is stable enough for me to deploy a commercial game with it? I’ve used 1.2 for my previous game and it worked well but this texture thing, among other things is making me consider if I shouldn’t upgrade

Thanks------------------------
@DJ_Link

www.david-amador.com

The API in SDL2 has improved on this; window management is now
insulated pretty well from the OpenGL side of things. SDL_SetVideoMode
is gone, instead you would use SDL_CreateWindow and
SDL_GL_CreateContext to set up your display, and then manage the
resulting SDL_Window object (e.g. with SDL_SetWindowSize).

As for deploying SDL2… a big problem is that a formal release hasn’t
been made yet, so the API is still subject to change. This would make
it difficult for a user to switch the shared library with a more
stable release further down the line. Of course if you’re near the
start of development, you could always start using SDL2 now and bank
that it’ll be finished by the time you are :POn Mon, Feb 20, 2012 at 8:18 PM, ^DJ_Link^ <david_djlink at hotmail.com> wrote:

Hi there.

So we all know that SDL 1.2 when we call SDL_SetVideoMode it destroys the
context thus making you reload all your textures.
I was wondering if SDL 2 has the same problem/caveat ?

Also, I’m wondering if SDL 2 is stable enough for me to deploy a commercial
game with it? I’ve used 1.2 for my previous game and it worked well but this
texture thing, among other things is making me consider if I shouldn’t
upgrade

Thanks


@DJ_Link

www.david-amador.com


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org