SDL3 and GLES
-
Hello,
Does anyone have a working example of SDL3 and GLES usage?
I am trying to extend a clickable default SDL template by creating renderer withSDL_WINDOW_OPENGLandSDL_GL_CONTEXT_PROFILE_ESprofile mask, but it either crashes or does not render anything (when I try to load the library explicitly withSDL_GL_LoadLibrary("libGLESv2.so")). Also tried with SDL2 - same story.clickable desktopruns fine though...
Thanks. -
@archie3d yes check out my ppsspp port https://forums.ubports.com/topic/12094/app-public-testing-native-port-ppsspp-psp-emulator-beta/15
-
create an SDL_WINDOW_OPENGL window, set SDL_GL_CONTEXT_PROFILE_ES, create the context with SDL_GL_CreateContext, and do not manually force SDL_GL_LoadLibrary("libGLESv2.so")
-
Thanks,@developerbayman, This is exactly what I am doing, and as I've said
clickable desktopruns just fine. I've checked your ppsspp code (thanks for that), which is using SDL2 from ubuntu-sdk-20.04. I've tried SDL2 from clickable 8.8.0 template (clickable createSDL app, I suppose it uses sdk-24.04 now, then override SDL3 with SDL2) and it does not want to create EGL context. Do you know the exact version of SDL2 used in your psp port? -
@archie3d It uses the system libsdl2-dev from the ubuntu-sdk-20.04 clickable framework and for that framework the SDL2 package is 2.0.10+dfsg1-3 on Focal/arm64 ...i tend to find even if your building for a newer version of UT you still have to use older packages because there is a break it seems in the versions and packaging being updated? ..idk i do know every time i try to build with newer repos something breaks ....
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login