pass
This commit is contained in:
1 parent
b1dd0a5107
commit
7b8c3181d5
2 files changed
+15
-7
No files matched your search
@@ -14,7 +14,11 @@
|
||||
void raybriInit(void *layer) {
|
||||
//SetTraceLogLevel(LOG_WARNING);
|
||||
|
||||
if (!raybriEGLInit()) {
|
||||
EGLConfig cfg = NULL;
|
||||
EGLContext ctx = EGL_NO_CONTEXT;
|
||||
EGLDisplay display = EGL_NO_DISPLAY;
|
||||
|
||||
if (!raybriEGLInit(&cfg, &ctx, &display)) {
|
||||
raybriLog("ERROR Could not initialize EGL");
|
||||
}
|
||||
|
||||
|
||||
@@ -8,7 +8,11 @@
|
||||
|
||||
// Header
|
||||
|
||||
bool raybriEGLInit(void);
|
||||
bool raybriEGLInit(
|
||||
EGLConfig *cfg,
|
||||
EGLContext *ctx,
|
||||
EGLDisplay *display
|
||||
);
|
||||
bool raybriEGLResetSurface(
|
||||
void *caLayer,
|
||||
EGLConfig *cfg,
|
||||
@@ -20,11 +24,11 @@ bool raybriEGLResetSurface(
|
||||
|
||||
#if defined(RAYBRI_EGL_IMPLEMENTATION)
|
||||
|
||||
bool raybriEGLInit(void) {
|
||||
EGLConfig cfg = NULL;
|
||||
EGLContext ctx = EGL_NO_CONTEXT;
|
||||
EGLDisplay display = EGL_NO_DISPLAY;
|
||||
|
||||
bool raybriEGLInit(
|
||||
EGLConfig *cfg,
|
||||
EGLContext *ctx,
|
||||
EGLDisplay *display
|
||||
){
|
||||
display = eglGetDisplay(EGL_DEFAULT_DISPLAY);
|
||||
if (display == EGL_NO_DISPLAY) {
|
||||
return false;
|
||||
|
||||
Reference in new issue
Block a user