attempt-1

This commit is contained in:
Михаил Капелько committed 2026-10-29 23:12:16 +03:00
1 parent 26528819a7
commit 7bd72fc60a
3 files changed
+19 -17

No files matched your search

-17
View File
@@ -11,26 +11,9 @@
#include <stdio.h>
static EGLState globalES = {
.caLayer = NULL,
.cfg = NULL,
.ctx = EGL_NO_CONTEXT,
.display = EGL_NO_DISPLAY,
.surface = EGL_NO_SURFACE
};
void raybriInit(void *layer) {
//SetTraceLogLevel(LOG_WARNING);
globalES.caLayer = layer;
if (!eglInit(&globalES)) {
raybriLog("ERROR Could not initialize EGL");
}
if (!eglResetSurface(&globalES)) {
raybriLog("ERROR Could not reset EGL surface");
}
// Initialize raylib graphics layer with a placeholder 1x1 framebuffer size
// Graphics layer includes default texture, shader, render batch and OpenGL state
rlglInit(1, 1);