From 29b2420dea15b02966abb9ae84e8f0c3227c817b Mon Sep 17 00:00:00 2001 From: bjorn Date: Mon, 27 May 2019 19:05:47 -0700 Subject: [PATCH] Work around macOS flicker bug; At this point I don't know if maybe I'm just using UBOs wrong but whatever. --- src/modules/graphics/graphics.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/graphics/graphics.c b/src/modules/graphics/graphics.c index 4dfcb551..e047a5cd 100644 --- a/src/modules/graphics/graphics.c +++ b/src/modules/graphics/graphics.c @@ -33,7 +33,7 @@ static const uint32_t BUFFER_COUNTS[] = { [STREAM_VERTEX] = (1 << 16) - 1, [STREAM_INDEX] = 1 << 16, [STREAM_DRAW_ID] = (1 << 16) - 1, -#ifdef LOVR_WEBGL // Temporarily work around bug where big UBOs don't work +#if defined(LOVR_WEBGL) || defined(__APPLE__) // Work around bugs where big UBOs don't work [STREAM_TRANSFORM] = MAX_DRAWS, [STREAM_COLOR] = MAX_DRAWS #else