diff --git a/components/raybri/mac/raybri.c b/components/raybri/mac/raybri.c index 6593117..3115688 100644 --- a/components/raybri/mac/raybri.c +++ b/components/raybri/mac/raybri.c @@ -2,7 +2,7 @@ #include "raybriAux.h" #include "rlgl.h" -void raybriInit(void) { +void raybriInit(void *layer) { //SetTraceLogLevel(LOG_WARNING); // Load OpenGL extensions diff --git a/components/raybri/raybri.h b/components/raybri/raybri.h index 902f706..ef63e31 100644 --- a/components/raybri/raybri.h +++ b/components/raybri/raybri.h @@ -1,7 +1,7 @@ #ifndef RAYBRI_H #define RAYBRI_H -void raybriInit(void); +void raybriInit(void *layer); void raybriRender(int width, int height); void raybriShutdown(void); diff --git a/components/render/renderEffect.swift b/components/render/renderEffect.swift index ad3d568..31165ad 100644 --- a/components/render/renderEffect.swift +++ b/components/render/renderEffect.swift @@ -16,7 +16,7 @@ func renderInit(_ vm: RenderVM) { var swapInterval: Int32 = 1 vm.glView.openGLContext?.setValues(&swapInterval, for: .swapInterval) - raybriInit() + raybriInit(nil) } func renderStartTimer(_ vm: RenderVM) {