Use consistent color strategy in glyphon
This commit is contained in:
parent
c528f2129e
commit
b5fc0f4a3a
2 changed files with 11 additions and 2 deletions
|
|
@ -36,7 +36,16 @@ impl Pipeline {
|
|||
.into_iter(),
|
||||
)),
|
||||
renderers: Vec::new(),
|
||||
atlas: glyphon::TextAtlas::new(device, queue, format),
|
||||
atlas: glyphon::TextAtlas::new(
|
||||
device,
|
||||
queue,
|
||||
format,
|
||||
if color::GAMMA_CORRECTION {
|
||||
glyphon::ColorMode::Accurate
|
||||
} else {
|
||||
glyphon::ColorMode::Web
|
||||
},
|
||||
),
|
||||
prepare_layer: 0,
|
||||
measurement_cache: RefCell::new(Cache::new()),
|
||||
render_cache: Cache::new(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue