mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-10-03 10:38:11 +08:00
Desktop add viewport texture (#2953)
* Allow rendering viewport texture beneath ui texture * Add viewport scale * Update desktop/src/render/fullscreen_texture.wgsl --------- Co-authored-by: Dennis Kobert <dennis@kobert.dev>
This commit is contained in:
+1
-1
@@ -83,7 +83,7 @@ impl ApplicationHandler<CustomEvent> for WinitApp {
|
||||
match event {
|
||||
CustomEvent::UiUpdate(texture) => {
|
||||
if let Some(graphics_state) = self.graphics_state.as_mut() {
|
||||
graphics_state.bind_texture(&texture);
|
||||
graphics_state.bind_ui_texture(&texture);
|
||||
graphics_state.resize(texture.width(), texture.height());
|
||||
}
|
||||
if let Some(window) = &self.window {
|
||||
|
||||
Reference in New Issue
Block a user