It doesn't work 100%, at least for me. Debug prints cause some delay which means user has more likely released ALT key during period when old window is gone and new one opened, meaning that ALT modifier state will not be reported (so it cannot "stick").
I didn't try yesterday, but my guess is that if user keeps ALT pressed until new window is opened, this will trigger issue always.
Regarding Grim Fandango returning 0 for red, green, blue, alpha bits when using FBO: if there's no valid color-attachment when querying those infos then you'll get 0. This seems to be the case here because you get the same result on Win32. However, there was a bug in ogles2.lib which resulted in also returning 0 if there was a valid texture color-attachment (for non-texture attachments it worked correctly). This has been fixed in upcoming ogles2 3.3.
@Raziel Yes, it works. Try to run in window mode, then run Grim , then hit "alt+enter" to swith to fullscreen. It switch fine. Then, hitting just "enter" (without alt) will swith back to the window : that what was bug about.
While in window mode, pressing "s" should bring up the save screen, instead it took a screenshot (ALT + "s"). I see what you mean, good thing this has been fixed.
@Raziel You need to use Andrea's clib2, then SDL2 can be compiled with.
And in your output you seems mix the things : if you compile via clib2, then includes, libs, sobjs all should be clib2 , i.e. in your latest lines you have /sdk/local/newlib/lib/libSDL2.so , why you touch newlib one there if you build for clib2 ?:)
@Capehill Sorry for being lame, but is there possibility by SDL1 or SDL2 to attach to already opened amigascreen/window ?
What i mean is : let's say i already open the amiga screen/window, and i need to attach SDL to it , so i can use SDL functions, and this amiga opened screen/window by amiga functions will functional ?
I mean i can do SDL_Init of course and stuff, just without opening the window, but with using of already opened one ?
@Capehill In SDL2 didn't fine testnativewindow examples, only testnative and testnativeamigaos4. In first one i didn't see any Intuition calls, and in second one, i see only os4 native stuff, without SDL functions.