(Playbook) Starts showing game image - totally screwed up pitch right now

though
This commit is contained in:
twinaphex 2013-02-26 16:33:41 +01:00
parent 57084bc3c9
commit 5b2a5c76b5

View File

@ -62,6 +62,7 @@ static void gfx_ctx_destroy(void)
eglDestroyContext(g_egl_dpy, g_egl_ctx);
eglDestroySurface(g_egl_dpy, g_egl_surf);
screen_destroy_window(screen_win);
screen_destroy_context(screen_ctx);
eglTerminate(g_egl_dpy);
eglReleaseThread();
@ -111,6 +112,11 @@ static bool gfx_ctx_init(void)
usage = SCREEN_USAGE_OPENGL_ES2 | SCREEN_USAGE_ROTATION;
RARCH_LOG("Initializing screen context\n");
// Create a screen context that will be used to create an EGL surface to receive libscreen events
screen_create_context(&screen_ctx, 0);
RARCH_LOG("Initializing context\n");
if ((g_egl_dpy = eglGetDisplay(EGL_DEFAULT_DISPLAY)) == EGL_NO_DISPLAY)