From b750dace761d1bb58cc937e20b8aea835177ea7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=9A=D0=B0=D0=BF?= =?UTF-8?q?=D0=B5=D0=BB=D1=8C=D0=BA=D0=BE?= Date: Thu, 29 Oct 2026 23:42:24 +0300 Subject: [PATCH] some --- components/raybri/ios/raybri.c | 7 +------ components/raybri/mac/raybri.c | 7 +------ components/raybri/raybri.h | 3 +-- components/render/ios/renderEffect.swift | 2 +- components/render/mac/renderEffect.swift | 2 +- 5 files changed, 5 insertions(+), 16 deletions(-) diff --git a/components/raybri/ios/raybri.c b/components/raybri/ios/raybri.c index 947c2bc..0b2f6ce 100644 --- a/components/raybri/ios/raybri.c +++ b/components/raybri/ios/raybri.c @@ -11,7 +11,7 @@ #include -void raybriInit(void *layer) { +void raybriInit() { //SetTraceLogLevel(LOG_WARNING); // Initialize raylib graphics layer with a placeholder 1x1 framebuffer size @@ -21,11 +21,6 @@ void raybriInit(void *layer) { rlClearColor(0, 0, 255, 255); } -void raybriLog(const char *txt) { - fprintf(stderr, "Raybri: %s\n", txt); - fflush(stderr); -} - void raybriRender(int width, int height) { // Set the drawing area to the current pixel size rlViewport(0, 0, width, height); diff --git a/components/raybri/mac/raybri.c b/components/raybri/mac/raybri.c index f0c6857..9cd5da9 100644 --- a/components/raybri/mac/raybri.c +++ b/components/raybri/mac/raybri.c @@ -7,7 +7,7 @@ #include "rlgl.h" #include -void raybriInit(void *layer) { +void raybriInit() { //SetTraceLogLevel(LOG_WARNING); // Load OpenGL extensions @@ -19,11 +19,6 @@ void raybriInit(void *layer) { rlClearColor(0, 0, 255, 255); } -void raybriLog(const char *txt) { - fprintf(stderr, "Raybri: %s\n", txt); - fflush(stderr); -} - void raybriRender(int width, int height) { // Set the drawing area to the current pixel size rlViewport(0, 0, width, height); diff --git a/components/raybri/raybri.h b/components/raybri/raybri.h index 0b0af2c..ea3d372 100644 --- a/components/raybri/raybri.h +++ b/components/raybri/raybri.h @@ -5,8 +5,7 @@ #include "../egl/egl.h" #endif -void raybriInit(void *layer); -void raybriLog(const char *txt); +void raybriInit(); void raybriRender(int width, int height); void raybriShutdown(void); diff --git a/components/render/ios/renderEffect.swift b/components/render/ios/renderEffect.swift index 4a7dd13..247f967 100644 --- a/components/render/ios/renderEffect.swift +++ b/components/render/ios/renderEffect.swift @@ -23,7 +23,7 @@ func renderInit(_ vm: RenderVM) { guard eglResetSurface(&vm.glView.st) else { fatalError("ERROR Could not reset EGL surface") } guard eglMakeCurrentContext(&vm.glView.st) else { fatalError("ERROR Could not make EGL context current") } - raybriInit(layer) + raybriInit() } func renderStartTimer(_ vm: RenderVM) { diff --git a/components/render/mac/renderEffect.swift b/components/render/mac/renderEffect.swift index 31165ad..ad3d568 100644 --- a/components/render/mac/renderEffect.swift +++ b/components/render/mac/renderEffect.swift @@ -16,7 +16,7 @@ func renderInit(_ vm: RenderVM) { var swapInterval: Int32 = 1 vm.glView.openGLContext?.setValues(&swapInterval, for: .swapInterval) - raybriInit(nil) + raybriInit() } func renderStartTimer(_ vm: RenderVM) {