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

Set SDL_GL_ACCELERATED_VISUAL to the actual value after OpenGL context was created #11992

Open
cher-nov opened this issue Jan 16, 2025 · 0 comments

Comments

@cher-nov
Copy link

cher-nov commented Jan 16, 2025

So that it could be retrieved by calling SDL_GL_GetAttribute() to determine whether the newly created context is accelerated.

There's also already a FIXME related to that:

SDL/src/video/SDL_video.c

Lines 4850 to 4855 in 4b429b9

case SDL_GL_ACCELERATED_VISUAL:
{
// FIXME: How do we get this information?
*value = (_this->gl_config.accelerated != 0);
return true;
}

@cher-nov cher-nov changed the title Set SDL_GL_ACCELERATED_VISUAL after OpenGL context was created Set SDL_GL_ACCELERATED_VISUAL to the actual value after OpenGL context was created Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant