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

Added GLFW_ACCELERATION window hint for hardware acceleration #2491

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

SuperSodaSea
Copy link

@SuperSodaSea SuperSodaSea commented Feb 20, 2024

  • Add GLFW_ACCELERATION window hint to specify whether hardware acceleration is preferred or not. Default to GLFW_TRUE, only available on WGL currently.
  • Add GLFW_ACCELERATION window attribute to retrieve whether hardware acceleration is enabled.
  • Supports creating window when the Microsoft GDI software OpenGL ICD is the only available implementation by default.
> glfwinfo --no-acceleration
...
OpenGL context version string: "1.1.0"
OpenGL context version parsed by GLFW: 1.1.0
OpenGL context renderer string: "GDI Generic"
OpenGL context vendor string: "Microsoft Corporation"
...

Resolves #589.

@elmindreda elmindreda added enhancement Feature suggestions and PRs Windows Win32 specific (not Cygwin or WSL) OpenGL labels Feb 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Feature suggestions and PRs OpenGL Windows Win32 specific (not Cygwin or WSL)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Window hint for allowing software renderer
2 participants