Android support, attempt-1 #8
@@ -17,10 +17,14 @@ void raybriInit(void *layer) {
|
|||||||
EGLConfig cfg = NULL;
|
EGLConfig cfg = NULL;
|
||||||
EGLContext ctx = EGL_NO_CONTEXT;
|
EGLContext ctx = EGL_NO_CONTEXT;
|
||||||
EGLDisplay display = EGL_NO_DISPLAY;
|
EGLDisplay display = EGL_NO_DISPLAY;
|
||||||
|
EGLSurface surface = EGL_NO_SURFACE;
|
||||||
|
|
||||||
if (!raybriEGLInit(&cfg, &ctx, &display)) {
|
if (!raybriEGLInit(&cfg, &ctx, &display)) {
|
||||||
raybriLog("ERROR Could not initialize EGL");
|
raybriLog("ERROR Could not initialize EGL");
|
||||||
}
|
}
|
||||||
|
if (!raybriEGLResetSurface(&cfg, &ctx, &display, &surface)) {
|
||||||
|
raybriLog("ERROR Could not reset EGL surface");
|
||||||
|
}
|
||||||
|
|
||||||
// Initialize raylib graphics layer with a placeholder 1x1 framebuffer size
|
// Initialize raylib graphics layer with a placeholder 1x1 framebuffer size
|
||||||
// Graphics layer includes default texture, shader, render batch and OpenGL state
|
// Graphics layer includes default texture, shader, render batch and OpenGL state
|
||||||
|
|||||||
Reference in new issue
Block a user