Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(client_core): 🐛 Fix staging texture resolution #2378

Merged
merged 1 commit into from
Sep 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions alvr/client_core/src/graphics/stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,10 @@ impl StreamRenderer {
let device = &context.device;
let gl = &context.gl_context;

let staging_resolution = UVec2::new(view_resolution.x * 2, view_resolution.y);
let target_format = super::gl_format_to_wgpu(target_format);

let staging_texture = super::create_texture(device, view_resolution, target_format);
let staging_texture = super::create_texture(device, staging_resolution, target_format);

let bind_group_layout = device.create_bind_group_layout(&BindGroupLayoutDescriptor {
label: None,
Expand Down Expand Up @@ -203,7 +204,7 @@ impl StreamRenderer {
};

let staging_renderer =
StagingRenderer::new(Rc::clone(&context), staging_texture_gl, view_resolution);
StagingRenderer::new(Rc::clone(&context), staging_texture_gl, staging_resolution);

Self {
context,
Expand Down
Loading