emilk / egui

egui: an easy-to-use immediate mode GUI in Rust that runs on both web and native
https://www.egui.rs/
Apache License 2.0
22.21k stars 1.6k forks source link

Broken rendering on integrated graphics #1876

Open Shadlock0133 opened 2 years ago

Shadlock0133 commented 2 years ago

Describe the bug Rendering seems to be broken on a laptop with integrated graphics ("Mobile Intel(R) 4 Series Express Chipset Family").

Expected behavior image

Screenshots audiopath

Desktop (please complete the following information):

Additional context This computer doesn't support OpenGL above version 2.1, and I've noticed applications and libraries are dropping support for it, so I'm not expecting this to get fixed.

coderedart commented 2 years ago

if it supports directx 12 or vulkan, you can try the wgpu version.

Shadlock0133 commented 2 years ago

if it supports directx 12 or vulkan

it supports directx only up to 10 or 11, and doesn't support vulcan

coderedart commented 2 years ago

partial support for dx11 exists (and opengl ES 2.0 support via angle).

no idea how hard it would be to enable it though. https://github.com/emilk/egui/blob/935913b1ec5fb95c468fde60a107daf4ac164a9e/eframe/src/native/run.rs#L251

ar37-rs commented 2 years ago

Use glow backend + SR, windows also support mesa llvmpipe: just copy all the *.dll file from https://github.com/pal1000/mesa-dist-win along side your app (doing that manually per/app is recommended), then add or set your envar before running the app like so:

set GALLIUM_DRIVER=llvmpipe
set LIBGL_ALWAYS_SOFTWARE=1