diff options
author | Eric Anholt <eric@anholt.net> | 2009-01-30 13:23:12 -0800 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2009-02-02 12:00:39 -0800 |
commit | dd1c68f15123a889a3ce9d2afe724e272d163e32 (patch) | |
tree | e0d930f14cc5e164a67a48346b49481d82a7dc7c /src/glx/x11/glxclient.h | |
parent | 92ced46eaf1f389108ed8d3d788498d799f0b385 (diff) |
dri2: Avoid round-tripping on DRI2GetBuffers for the same set of buffers.
We only wanted to request when asked for the same set of buffers when a resize
has happened. We can just watch the protocol stream for a ConfigureNotify
and flag to do it then.
This is about a 5% win from doing two glViewport()s per frame in openarena.
Diffstat (limited to 'src/glx/x11/glxclient.h')
-rw-r--r-- | src/glx/x11/glxclient.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glx/x11/glxclient.h b/src/glx/x11/glxclient.h index 16f6074ed8..bdc6287a45 100644 --- a/src/glx/x11/glxclient.h +++ b/src/glx/x11/glxclient.h @@ -602,6 +602,7 @@ extern void __glXSendLargeCommand(__GLXcontext *, const GLvoid *, GLint, const GLvoid *, GLint); /* Initialize the GLX extension for dpy */ +extern __GLXdisplayPrivate * __glXGetPrivateFromDisplay(Display *dpy); extern __GLXdisplayPrivate *__glXInitialize(Display*); /************************************************************************/ |