diff --git a/components/raybri/raybri.c b/components/raybri/raybri.c index 1a7b6c1..a0bfe15 100644 --- a/components/raybri/raybri.c +++ b/components/raybri/raybri.c @@ -15,11 +15,15 @@ void raybriInit(void) { } void raybriRender(int width, int height) { + // Set the drawing area to the current pixel size rlViewport(0, 0, width, height); + // Clear color and depth buffers for the next frame rlClearScreenBuffers(); + // Draw any queued geometry rlDrawRenderBatchActive(); } void raybriShutdown(void) { + // Release rlgl buffers, shaders and textures rlglClose(); }