WebVR fixes;

- Re-add the maf.c file that exports all the maf symbols.
- Fix lovrGpuTock for WebGL.
This commit is contained in:
bjorn 2019-10-07 19:50:17 -07:00
parent eb83962fc6
commit 5f404e2b1f
4 changed files with 8 additions and 0 deletions

View File

@ -325,6 +325,7 @@ endif()
set(LOVR_SRC
src/main.c
src/core/arr.c
src/core/maf.c
src/core/platform.c
src/core/ref.c
src/core/utf.c

2
src/core/maf.c Normal file
View File

@ -0,0 +1,2 @@
#define MAF_EXPORT
#include "maf.h"

View File

@ -7,7 +7,11 @@
#pragma once
#ifdef MAF_EXPORT
#define MAF LOVR_EXPORT
#else
#define MAF static LOVR_INLINE
#endif
typedef float* vec3;
typedef float* quat;

View File

@ -1298,6 +1298,7 @@ double lovrGpuTock(const char* label) {
return timer->ns / 1e9;
#endif
return 0.;
}
const GpuFeatures* lovrGpuGetFeatures() {