oculus_mobile: respect t.headset.msaa;

This commit is contained in:
bjorn 2020-02-07 22:09:47 -08:00
parent c502f5b62a
commit 02a73f333e
1 changed files with 3 additions and 1 deletions

View File

@ -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
});