Fix offscreen render setting GLWindowingData::wnd=0, an error condition.

This commit is contained in:
michaelrgb
2017-09-19 12:04:50 +01:00
committed by Baldur Karlsson
parent 3c05b25653
commit 61606d8aea
2 changed files with 5 additions and 6 deletions
+5 -3
View File
@@ -161,7 +161,6 @@ struct GLWindowingData
egl_ctx = 0;
egl_dpy = 0;
egl_wnd = 0;
wnd = 0;
}
void SetCtx(void *c) { egl_ctx = (void *)c; }
@@ -172,8 +171,11 @@ struct GLWindowingData
EGLContext egl_ctx;
};
EGLDisplay egl_dpy;
EGLSurface egl_wnd;
ANativeWindow *wnd;
union
{
EGLSurface egl_wnd;
void *wnd;
};
};
#else
-3
View File
@@ -276,9 +276,6 @@ public:
ret.egl_dpy = eglDisplay;
ret.egl_ctx = ctx;
ret.egl_wnd = surface;
#if ENABLED(RDOC_ANDROID)
ret.wnd = (ANativeWindow *)window;
#endif
return ret;
}