mirror of https://github.com/bjornbytes/lovr.git
WebVR fixes;
- Re-add the maf.c file that exports all the maf symbols. - Fix lovrGpuTock for WebGL.
This commit is contained in:
parent
eb83962fc6
commit
5f404e2b1f
|
@ -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
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
#define MAF_EXPORT
|
||||
#include "maf.h"
|
|
@ -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;
|
||||
|
|
|
@ -1298,6 +1298,7 @@ double lovrGpuTock(const char* label) {
|
|||
|
||||
return timer->ns / 1e9;
|
||||
#endif
|
||||
return 0.;
|
||||
}
|
||||
|
||||
const GpuFeatures* lovrGpuGetFeatures() {
|
||||
|
|
Loading…
Reference in New Issue