Using Renderer Accelerated on Android ? |
Using Renderer Accelerated on Android ? |
Alex Szpakowski
Guest
|
SDL_Render functionality (including SDL_Texture functionality) can only be used on the main thread.
_______________________________________________ SDL mailing list http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org |
|||||||||||||
|
Using Renderer Accelerated on Android ? |
yoa.gauthier
|
Ok I modified parts of my code to make the texture updating in the main thread and it works like a charm, thanks a lot !
So it was only luck that make it work with the SDL_RENDERER_SOFTWARE flag ?
|
|||||||||||||||||
|
Using Renderer Accelerated on Android ? |
Mason Wheeler
Guest
|
OpenGL contexts have thread affinity: the objects they create (including textures) only work in the thread it was created in. The software renderer doesn't have this same limitation.
From: yoann; To: SDL Development List; Subject: Re: [SDL] Using Renderer Accelerated on Android ? Sent: Tue, Nov 29, 2016 5:19:28 AM Ok I modified parts of my code to make the texture updating in the main thread and it works like a charm, thanks a lot !So it was only luck that make it work with the SDL_RENDERER_SOFTWARE flag ?
|
|||||||||||||||||
|