Magic Sam
Forever Homebrew
Hi all
Thanks @ptitSeb, that did the trick !
Another issue I have with that piece of code is that I don't really understand how SDL and OpenGL ES work together... This is an SDL 1.2 application, compatible with OpenGL ES 2.0. So far (after setting export SDL_VIDEO_GLES2=1 and export SDL_VIDEO_GL_DRIVER=libGLESv2.so) it fails with:
The developper told me the call SDL_SetVideoMode(800, 480, 32, SDL_OPENGL) was failing, and that I had to use SDL_SetVideoMode(800, 480, 16, SDL_OPENGLES) instead, as per pandorawiki.org:
https://pandorawiki.org/GLES#1:_Grab_the_modified_version_of_SDL
But in order for this to work, do I need to use Cpasjuste version ?
https://github.com/Cpasjuste/SDL-13
Cheers, Magic Sam
Thanks @ptitSeb, that did the trick !
Another issue I have with that piece of code is that I don't really understand how SDL and OpenGL ES work together... This is an SDL 1.2 application, compatible with OpenGL ES 2.0. So far (after setting export SDL_VIDEO_GLES2=1 and export SDL_VIDEO_GL_DRIVER=libGLESv2.so) it fails with:
Notice: [SDL] Video Info: 800, 480, hardware acceleration: no, window manager: yes, MSAA: 4
platform_video_init() failed.
Error: couldn't initialize video subsystem. Check permissions, try other video platform options (-f, -w, -h)
Video platform environment variables:
(...)
Video platform initialization failed
Aborted
The developper told me the call SDL_SetVideoMode(800, 480, 32, SDL_OPENGL) was failing, and that I had to use SDL_SetVideoMode(800, 480, 16, SDL_OPENGLES) instead, as per pandorawiki.org:
https://pandorawiki.org/GLES#1:_Grab_the_modified_version_of_SDL
But in order for this to work, do I need to use Cpasjuste version ?
https://github.com/Cpasjuste/SDL-13
Cheers, Magic Sam