macOS fixes;

This commit is contained in:
bjorn 2021-02-22 17:07:28 -07:00
parent fb1447503b
commit 1145085446
2 changed files with 4 additions and 4 deletions

View File

@ -236,7 +236,7 @@
#if defined(_MSC_VER) || defined(__MINGW32__)
#include <malloc.h>
#endif
#if defined(__linux__) || defined(__linux) || defined(__EMSCRIPTEN__) || defined(__NEWLIB__)
#if defined(__linux__) || defined(__linux) || defined(__EMSCRIPTEN__) || defined(__NEWLIB__) || defined(__APPLE__)
#include <alloca.h>
#endif
#else // STB_VORBIS_NO_CRT

View File

@ -2624,9 +2624,9 @@ Shader* lovrShaderCreateGraphics(const char* vertexSource, int vertexSourceLengt
#else
const char* version = "#version 330\n";
const char* computeExtensions = state.features.compute ?
"#extension GL_ARB_shader_storage_buffer_object : enable \n"
"#extension GL_ARB_shader_image_load_store : enable \n" :
NULL;
"#extension GL_ARB_shader_storage_buffer_object : enable\n"
"#extension GL_ARB_shader_image_load_store : enable\n" :
"";
#endif
const char* singlepass[2] = { "", "" };