no ready in c

This commit is contained in:
Михаил Капелько committed 2026-10-25 07:03:25 +03:00
1 parent 804385cc28
commit 080b03fcf8
1 file changed
-13
-13
View File
@@ -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();
}