hexops / mach

zig game engine & graphics toolkit
https://machengine.org
Other
3.28k stars 155 forks source link

core: linux: MangoHud reports using both OpenGL and Vulkan when `MACH_GPU_BACKEND=opengl`; is our OpenGL init code correct? #860

Closed anyputer closed 11 months ago

anyputer commented 1 year ago

MangoHud says it's using Vulkan, and RenderDoc says there are two distinct windows, and I can't capture the OpenGL window. vkBasalt post-processing working makes it clear that it's actually using Vulkan to render, and OpenGL fails somehow.

Screenshot from 2023-07-15 21-25-40

slimsag commented 1 year ago

Notes to self on how to reproduce this:

I assume I would need to e.g. install MangoHud https://github.com/flightlessmango/MangoHud

And then run e.g. the textured-cube example like this with MACH_GPU_BACKEND=opengl:

git clone --recursive https://github.com/hexops/mach-core
cd mach-core/
MACH_GPU_BACKEND=opengl zig build run-textured-cube

And then see if we can reproduce the same 'both are in use' behavior and debug/confirm our OpenGL init code is correct.