diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2011-02-04 13:40:13 +0100 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2011-02-04 13:40:13 +0100 |
commit | 7d18db8f4e97acf6d567c1d48a3537b28e1d13f1 (patch) | |
tree | 7648404f11e9c89f793f5ca59bd12fc816b51b62 | |
parent | acf2d4d38df8732ab15b28c40abdf436af1bf748 (diff) |
pixmap-image: Destroy old not new image inc configure & set framebuffer
-rw-r--r-- | egl-wayland-pixmap-image.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/egl-wayland-pixmap-image.c b/egl-wayland-pixmap-image.c index cff8fc4..ff5764b 100644 --- a/egl-wayland-pixmap-image.c +++ b/egl-wayland-pixmap-image.c @@ -351,7 +351,10 @@ handle_configure(void *data, struct wl_shell *shell, glEGLImageTargetRenderbufferStorageOES(GL_RENDERBUFFER, window->surface.egl_image); - eglDestroyImageKHR(d->egl.dpy, window->surface.egl_image); + glFramebufferRenderbuffer(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, + GL_RENDERBUFFER, window->gl.color_rbo); + + eglDestroyImageKHR(d->egl.dpy, old_egl_image); wl_egl_native_pixmap_destroy(old_egl_pixmap); glViewport(0, 0, window->geometry.width, window->geometry.height); |