Skip to content

Support both X11 and Wayland in the same build. #3360

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

Merged
merged 2 commits into from
Oct 5, 2024

Conversation

mcourteaux
Copy link
Contributor

  • Works for both Vulkan and OpenGL.
  • Remove --with-wayland from genie options.
  • Vulkan loads all three extensions for surface creation instead of only one.
  • Add width and height parameter to GlContext::createSwapChain(), which is needed for EGL to create a SwapChain with the given window size.
  • Dirty-fix the example-22-windows to recreate the FrameBuffer by first destroying and then recreating to make sure the window is released of its swapchain.
  • Fix dbgText glitch in example-22-windows.
  • Remove old X11-related dependencies for GLFW3.

 - Works for both Vulkan and OpenGL.
 - Remove --with-wayland from genie options.
 - Vulkan loads all three extensions for surface creation instead of only one.
 - Add width and height parameter to GlContext::createSwapChain(), which is needed for EGL to create
   a SwapChain with the given window size.
 - Dirty-fix the example-22-windows to recreate the FrameBuffer by first destroying and then
   recreating to make sure the window is released of its swapchain.
 - Fix dbgText glitch in example-22-windows.
 - Remove old X11-related dependencies for GLFW3.
@mcourteaux mcourteaux requested a review from bkaradzic as a code owner October 4, 2024 12:17
@bkaradzic
Copy link
Owner

bkaradzic commented Oct 4, 2024

LGTM!

Can you just fix code style...

bgfx code style is always braces (Allman style) regardless of number of lines. And else on separate line.

@mcourteaux
Copy link
Contributor Author

Fixed the formatting! (Also in a couple of other files I found by ripgrepping).

@bkaradzic bkaradzic merged commit e488a07 into bkaradzic:master Oct 5, 2024
11 checks passed
@bkaradzic
Copy link
Owner

GLFW 3.3.6 doesn't have glfwGetPlatform... What's your version of GLFW?

@bkaradzic
Copy link
Owner

0a5fe70

@mcourteaux
Copy link
Contributor Author

Aha, I didn't realize that that required a newer version. Thanks for taking care of it! 😄

jazzbre pushed a commit to jazzbre/bgfx that referenced this pull request Mar 17, 2025
* Support both X11 and Wayland in the same build.

 - Works for both Vulkan and OpenGL.
 - Remove --with-wayland from genie options.
 - Vulkan loads all three extensions for surface creation instead of only one.
 - Add width and height parameter to GlContext::createSwapChain(), which is needed for EGL to create
   a SwapChain with the given window size.
 - Dirty-fix the example-22-windows to recreate the FrameBuffer by first destroying and then
   recreating to make sure the window is released of its swapchain.
 - Fix dbgText glitch in example-22-windows.
 - Remove old X11-related dependencies for GLFW3.

* Formatting.
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

Successfully merging this pull request may close these issues.

2 participants