This commit is contained in:
Михаил Капелько committed 2026-10-29 23:01:59 +03:00
1 parent b9b7e91bcd
commit 360be210c2
7 files changed
+33 -33

No files matched your search

+7 -7
View File
@@ -1,17 +1,17 @@
#include "raybri.h"
#define RAYBRI_EGL_CONST_IMPLEMENTATION
#include "raybriEGLConst.h"
#define EGL_CONST_IMPLEMENTATION
#include "eglConst.h"
#define RAYBRI_EGL_IMPLEMENTATION
#include "raybriEGL.h"
#define EGL_IMPLEMENTATION
#include "egl.h"
#define RLGL_IMPLEMENTATION
#include "rlgl.h"
#include <stdio.h>
static RaybriEGLState globalES = {
static EGLState globalES = {
.caLayer = NULL,
.cfg = NULL,
.ctx = EGL_NO_CONTEXT,
@@ -24,10 +24,10 @@ void raybriInit(void *layer) {
globalES.caLayer = layer;
if (!raybriEGLInit(&globalES)) {
if (!eglInit(&globalES)) {
raybriLog("ERROR Could not initialize EGL");
}
if (!raybriEGLResetSurface(&globalES)) {
if (!eglResetSurface(&globalES)) {
raybriLog("ERROR Could not reset EGL surface");
}