UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    SDL3 and GLES

    Scheduled Pinned Locked Moved App Development
    5 Posts 2 Posters 182 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A Offline
      archie3d
      last edited by

      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 with SDL_WINDOW_OPENGL and SDL_GL_CONTEXT_PROFILE_ES profile mask, but it either crashes or does not render anything (when I try to load the library explicitly with SDL_GL_LoadLibrary("libGLESv2.so")). Also tried with SDL2 - same story. clickable desktop runs fine though...
      Thanks.

      developerbaymanD 1 Reply Last reply Reply Quote 0
      • developerbaymanD Offline
        developerbayman @archie3d
        last edited by

        @archie3d yes check out my ppsspp port https://forums.ubports.com/topic/12094/app-public-testing-native-port-ppsspp-psp-emulator-beta/15

        1 Reply Last reply Reply Quote 0
        • developerbaymanD Offline
          developerbayman
          last edited by

          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")

          1 Reply Last reply Reply Quote 0
          • A Offline
            archie3d
            last edited by

            Thanks,@developerbayman, This is exactly what I am doing, and as I've said clickable desktop runs 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 create SDL 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?

            developerbaymanD 1 Reply Last reply Reply Quote 0
            • developerbaymanD Offline
              developerbayman @archie3d
              last edited by

              @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 ....

              1 Reply Last reply Reply Quote 0

              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
              • First post
                Last post