Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Master and Fedora40 Repo] Fails to write a .trace file. #917

Closed
jakubbys opened this issue Apr 28, 2024 · 2 comments
Closed

[Master and Fedora40 Repo] Fails to write a .trace file. #917

jakubbys opened this issue Apr 28, 2024 · 2 comments

Comments

@jakubbys
Copy link

SanityCheck.zip
This is the first redBook openGL 4.5 example, transformed to use SDL2.
No idea why nothing gets traced with this app, I do get that almost nothing is going on in the first example of the book.
Just 2 simple shaders setup and continuously rendering the same set of VAO with the exact same shader program with vsync on.
Am I missing something?

@jrfonseca
Copy link
Member

Maybe it's using EGL instead of GLX?

Try apitrace trace -a egl ./your-application ...

@jakubbys
Copy link
Author

My dumbass glanced over the options and read them as openGL or openGLES, so I only tried it with -a gl.
apitrace trace -a egl build/triangles does indeed work now.
I also tested openArena which just uses SDL-1.2 which just doesn't have support for EGL and that indeed uses GLX.

With all this discussion about Wayland being the default in SDL3 as opposed to X11 windowing being default in SDL2 I didn't even thought a native wayland surface would have been created by SDL2.
xlsclients -a indeed doesn't list my SDL2 applications as running under any x11 DISPLAY.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants