emilk / emilk/egui

egui_glow: egui_glow.paint(gl_window.window()); painting the UI causes everything to be brighter

Open
#2,228 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
Rust
Stars
30.6k
Forks
2.1k
Avg merge
1d 9h
Merged PRs (30d)
72

Description

**Problem**
Using the egui_glow.paint(...); function to render the UI causes absolutely everything to be brighter in the gl context.

**To Reproduce**
This bug is present in the only egui_glow example - https://github.com/emilk/egui/blob/master/crates/egui_glow/examples/pure_glow.rs.

**Screenshots**
![image](https://user-images.githubusercontent.com/34283640/199707762-e24a2c11-eedd-414e-847c-a1f389f85bc1.png)

- OS: Windows 10

Contributor guide

Open the contributing guide

Research direction

Start with crates/egui_glow/examples/pure_glow.rs and the egui_glow.paint(gl_window.window()) call to reproduce the brightness change on the reported Windows 10 setup. Trace the OpenGL rendering state around that call; done means painting the UI no longer makes everything else in the gl context brighter.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.