c/main: Remove viewport_id in mesh shader

This commit is contained in:
Jakob Bornecrantz committed 2020-10-13 19:17:50 +01:00
1 parent 95bdcc0bd3
commit 4ffc0b4144
3 files changed
-4

No files matched your search

@@ -552,9 +552,7 @@ comp_distortion_update_uniform_buffer_warp(struct comp_distortion *d,
*/
// clang-format off
d->ubo_vp_data[0].viewport_id = 0;
d->ubo_vp_data[0].rot = c->xdev->hmd->views[0].rot;
d->ubo_vp_data[1].viewport_id = 1;
d->ubo_vp_data[1].rot = c->xdev->hmd->views[1].rot;
memcpy(d->ubo_viewport_handles[0].mapped, &d->ubo_vp_data[0], sizeof(d->ubo_vp_data[0]));
@@ -73,7 +73,6 @@ struct comp_distortion
struct
{
struct xrt_matrix_2x2 rot;
int viewport_id;
bool flip_y;
} ubo_vp_data[2];
-1
View File
@@ -8,7 +8,6 @@
layout (binding = 1, std140) uniform ubo
{
vec4 rot;
int viewport_id;
bool flip_y;
} ubo_vp;