I now uninstalled mesa-common-dev because I found that at several places in the web. But it does not help. Then I added a list of the videodrivers, as suggested by ChliHug.
This is my initialization code:
// start SDL video
if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_AUDIO)<0)
{
printlog(LOG_ERROR,"Cannot initialize SDL: %s",SDL_GetError());
return 1;
}
atexit(GUI_quit); // remember to quit SDL
for (i=0; i<SDL_GetNumVideoDrivers();i++)
printlog(LOG_DEBUG,"Videodriver found: %s",SDL_GetVideoDriver(i));
if (flags != Mix_Init(flags))
{
printlog(LOG_ERROR, "Cannot initialize SDL_Mixer: %s", SDL_GetError());
return 1;
}
// open the screen window
window = SDL_CreateWindow("YaPS", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, 1024, 768, SDL_WINDOW_SHOWN);
if (!window)
{
printlog(LOG_ERROR, "Could not create Window: %s",SDL_GetError());
return 1;
}
renderer = SDL_CreateRenderer(window, 0, SDL_RENDERER_ACCELERATED | SDL_RENDERER_TARGETTEXTURE);
if (!renderer)
{
printlog(LOG_ERROR, "Could not create Renderer: %s",SDL_GetError());
return 1;
}
And this is my output (I run my application as root to avoid user rights problems with the framebuffer):
G1 Full KMS:
05.09.2017,17:42:01: ERROR : Cannot initialize SDL:
G2 Fake KMS:
G3 None:
05.09.2017,17:46:16: DEBUG : Videodriver found: RPI
05.09.2017,17:46:16: DEBUG : Videodriver found: dummy
05.09.2017,17:46:16: ERROR : Could not create Window: Could not initialize OpenGL / GLES library
As you can see. If I activate Full KMS it could not initialize at all. The other cases initialize SDL and see the RPI driver but fail to create the window.
I built SDL2 with the following config:
../configure --host=armv7l-raspberry-linux-gnueabihf --disable-pulseaudio --disable-esd --disable-video-mir --disable-video-wayland --disable-video-x11 --disable-video-opengl
So there should be no false opengl because of --disable-video-opengl
I have to check the latest development sources now as suggested by ChliHug. But why? Everything was fine on my old Raspian.