docs: document that DISPLAY= ./triangle can be used to force the use of Wayland at runtime #376
Labels
No labels
CI
all
basisu
blog
bug
build
contributor-friendly
core
correctness
deferred
dev
direct3d-headers
docs
driver-os-issue
duplicate
dxcompiler
editor
examples
experiment
feature-idea
feedback
flac
freetype
gamemode
gkurve
glfw
gpu
gpu-dawn
harfbuzz
help welcome
in-progress
infrastructure
invalid
libmach
linux-audio-headers
long-term
mach
mach.gfx
mach.math
mach.physics
mach.testing
model3d
needs-triage
object
opengl-headers
opus
os/linux
os/macos
os/wasm
os/windows
package-manager
priority
proposal
proposal-accepted
question
roadmap
slipped
stability
sysaudio
sysgpu
sysjs
validating-fix
vulkan-zig-generated
wayland-headers
website
wontfix
wrench
www
x11-headers
xcode-frameworks
zig-update
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
hexops/mach#376
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Quoting myself:
We should add a standard env var, maybe
PLATFORM=wayland,PLATFORM=x11to allow choosing.Related to https://github.com/hexops/mach/pull/374
IMO mach should namespace its environment variables with a
MACH_prefix to avoid conflicts with other programs. It wouldn’t surprise me if some other software also reads$PLATFORM, it’s pretty generic.Shouldn't this also be usable if you just want to use glfw without mach? I think
PLATFORMorGLFW_PLATFORMshould be the env varI agree
MACH_PLATFORMshould be the env var name, andGPU_BACKENDrenamed toMACH_GPU_BACKEND.@PiergiorgioZagaria If you use GLFW, you would pass the option to GLFW via
glfw.Init(.{.platform = .wayland})yourself. If you like, you can use an environment variable of your own. But this code will not live in the GLFW package, it would be in the Mach app abstraction.Ok, then I will revert the last commit I pushed to the PR
Fixed in
github.com/hexops/machengine.org@63f9bbeb1e