dri/swrast: fix swapBuffers after dri2

This commit is contained in:
George Sapountzis 2008-09-12 12:43:10 +03:00
parent b2e083eba2
commit d3dc95e26a
1 changed files with 6 additions and 0 deletions

View File

@ -335,6 +335,11 @@ static __GLXDRIdrawable *driCreateDrawable(__GLXscreenConfigs *psc,
return pdraw;
}
static void driSwapBuffers(__GLXDRIdrawable *pdraw)
{
(*pdraw->psc->core->swapBuffers)(pdraw->driDrawable);
}
static void driDestroyScreen(__GLXscreenConfigs *psc)
{
/* Free the direct rendering per screen data */
@ -398,6 +403,7 @@ static __GLXDRIscreen *driCreateScreen(__GLXscreenConfigs *psc, int screen,
psp->destroyScreen = driDestroyScreen;
psp->createContext = driCreateContext;
psp->createDrawable = driCreateDrawable;
psp->swapBuffers = driSwapBuffers;
return psp;