From: Dana Jansens Date: Thu, 10 Jun 2010 18:00:20 +0000 (-0400) Subject: create the gltexture for an obwindow when you hear about the top-level window creation. X-Git-Tag: cgl~52 X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=f6437af4e652c52e5fea0d3fc603a3fa41692043;p=dana%2Fopenbox.git create the gltexture for an obwindow when you hear about the top-level window creation. was occuring before gl was initialized. --- diff --git a/openbox/event.c b/openbox/event.c index 115e2880..990b8771 100644 --- a/openbox/event.c +++ b/openbox/event.c @@ -628,6 +628,7 @@ static void event_process(const XEvent *ec, gpointer data) if (xe->window == window_top(obwin)) { obwin->mapped = 0; RECT_SET(obwin->comp_area, xe->x, xe->y, xe->width, xe->height); + if (!obwin->texture) glGenTextures(1, &obwin->texture); } } else if ((e->type == ConfigureNotify || e->type == MapNotify) && obwin && obwin->type != OB_WINDOW_CLASS_PROMPT) { diff --git a/openbox/window.c b/openbox/window.c index b139af56..51d506f8 100644 --- a/openbox/window.c +++ b/openbox/window.c @@ -56,11 +56,6 @@ ObWindow* window_new_size(ObWindowClass type, gsize size) self = g_slice_alloc0(size); self->size = size; self->type = type; - -#ifdef USE_COMPOSITING - glGenTextures(1, &self->texture); -#endif - return self; }