Posts: 3
Joined: Fri Sep 06, 2013 6:22 am

SDL2 Hardware acceleration

Mon Aug 15, 2016 10:01 am


I am using SDL2 for a display system and Software Rendering.
SDL_CreateRenderer (Window, -1, SDL_RENDERER_SOFTWARE);

I need a performance boost for transitions but when I use SDL_RENDERER_ACCELERATED I get
SDL ERROR: glFramebufferTexture2D() failed
SDL ERROR: Failed to link shader program

Is this fixable?

When this is sorted I will have a component library (based on SDL) for building GUI applications on multiple targets if anyone is interested.

Thanks for any help.

Posts: 6
Joined: Sat Aug 27, 2016 11:15 pm

Re: SDL2 Hardware acceleration

Sat Aug 27, 2016 11:30 pm

I have signed up to basically ask this same question. I have been a bit out of the loop regarding the progress of accelleration with GL. For SDL2 I have found a forum topic which nearly covers it:


So for some of the functionality of SDL2 it looks like it is possible but can somebody put me (and the OP I expect) out of my google fu inability and say whether OpenGL 1.1 (or similar version) with immediate mode calls are now accellerated under mesa and whether SDL2 can be made accellerated.

Do we need glshim library to make GL calls into the ES accellerated library bypassing mesa ?

Return to “OpenGLES”