Re: Using Renderer Accelerated on Android ?

yoann <[email protected]>
Newsgroups gmane.comp.lib.sdl
Message-ID <[email protected]>
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 ?


> -----Origin email-----
> From: "Alex Szpakowski" <[email protected]>
> Sent Time: Nov 29, 2016 11:19:59 AM
> To: "SDL Development List" <[email protected]>
> Cc: 
> Subject: Re: [SDL] Using Renderer Accelerated on Android ?
> 
> SDL_Render functionality (including SDL_Texture functionality) can only be used on the main thread.
> 
> > On Nov 28, 2016, at 11:17 PM, yoann <[email protected]> wrote:
> > 
> > My native main thread creates a window and a renderer, and then I use other threads to do the demuxing and decoding process. After decoding my frames, I store them in a YV12 Texture in a secondary thread, and then call the renderer in the native main thread to display the picture.
> 
> _______________________________________________
> SDL mailing list
> [email protected]
> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________
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.