From 02a73f333e7a34dcd5c6c372c5e598fdbec6db8c Mon Sep 17 00:00:00 2001 From: bjorn Date: Fri, 7 Feb 2020 22:09:47 -0800 Subject: [PATCH] oculus_mobile: respect t.headset.msaa; --- src/modules/headset/oculus_mobile.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/modules/headset/oculus_mobile.c b/src/modules/headset/oculus_mobile.c index b285f07b..8f6b6cc4 100644 --- a/src/modules/headset/oculus_mobile.c +++ b/src/modules/headset/oculus_mobile.c @@ -31,12 +31,14 @@ static struct { static struct { void (*renderCallback)(void*); void* renderUserdata; + uint32_t msaa; float offset; } state; // Headset driver object static bool vrapi_init(float offset, uint32_t msaa) { + state.msaa = msaa; state.offset = offset; return true; } @@ -529,7 +531,7 @@ void bridgeLovrDraw(BridgeLovrDrawData *drawData) { .depth.enabled = true, .depth.readable = false, .depth.format = FORMAT_D24S8, - .msaa = 4, + .msaa = state.msaa, .stereo = true, .mipmaps = false });