diff --git a/components/raybri/raybri.c b/components/raybri/raybri.c index e27ad28..6445414 100644 --- a/components/raybri/raybri.c +++ b/components/raybri/raybri.c @@ -3,8 +3,6 @@ #include "raybriConst.h" #include "rlgl.h" -static int sr_ready = 0; - void raybriInit(void) { //SetTraceLogLevel(LOG_WARNING); @@ -14,15 +12,9 @@ void raybriInit(void) { rlglInit(1, 1); // Background is painted in blue rlClearColor(0, 0, 255, 255); - - sr_ready = 1; } void raybriRender(int width, int height) { - if (!sr_ready) { - return; - } - rlViewport(0, 0, width, height); rlClearScreenBuffers(); rlDrawRenderBatchActive(); @@ -30,10 +22,5 @@ void raybriRender(int width, int height) { void raybriShutdown(void) { - if (!sr_ready) { - return; - } - sr_ready = 0; - rlglClose(); }