From c59508566f11982aa3f4be383597d0e6178718c2 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Fri, 23 Dec 2005 01:13:28 +0000 Subject: [PATCH] fix glx up for newest glitz interface --- hw/xgl/xglglx.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/xgl/xglglx.c b/hw/xgl/xglglx.c index 4c283f437..88e23e2a4 100644 --- a/hw/xgl/xglglx.c +++ b/hw/xgl/xglglx.c @@ -3671,9 +3671,10 @@ xglInitExtensions (xglGLContextPtr pContext) static void xglSetCurrentContext (xglGLContextPtr pContext) { + XGL_SCREEN_PRIV (pContext->pDrawBuffer->pGC->pScreen); cctx = pContext; - glitz_context_make_current (cctx->context); + glitz_context_make_current (cctx->context, pScreenPriv->drawable); __glRenderTable = &__glNativeRenderTable; __glRenderTableEXT = &cctx->glRenderTableEXT; @@ -4759,8 +4760,7 @@ xglInitVisualConfigs (ScreenPtr pScreen) glitz_surface_attach (pScreenPriv->backSurface, pScreenPriv->drawable, - GLITZ_DRAWABLE_BUFFER_BACK_COLOR, - 0, 0); + GLITZ_DRAWABLE_BUFFER_BACK_COLOR); numConfig *= 2; }