diff options
author | Michel Dänzer <michel@tungstengraphics.com> | 2007-05-22 10:51:53 +0200 |
---|---|---|
committer | Michel Dänzer <michel@tungstengraphics.com> | 2007-05-22 10:51:53 +0200 |
commit | 6324bfc468f7a645d2fee59f1c921a4328a4639f (patch) | |
tree | 4af1f10313cddc14b68de9e4cc530dbb86191b98 /GL/glx/glxserver.h | |
parent | 5006d08d7fc56d3d380cc6b75297f94e8594eb54 (diff) |
AIGLX: Zero-copy texture-from-pixmap.
When available, use the 2D driver texOffsetStart hook and the 3D driver
setTexOffset hook to save the overhead of passing the pixmap data to
glTex(Sub)Image.
The basic idea is to update the driver specific 'offset' for bound pixmaps
before dispatching a GLX render request and to flush immediately afterwards
if there are any pixmaps bound. This should ensure that the 3D driver can
use pixmaps for texturing directly regardless of the X server moving them
around.
Diffstat (limited to 'GL/glx/glxserver.h')
-rw-r--r-- | GL/glx/glxserver.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/GL/glx/glxserver.h b/GL/glx/glxserver.h index 49cad7328..fa09c1546 100644 --- a/GL/glx/glxserver.h +++ b/GL/glx/glxserver.h @@ -131,10 +131,10 @@ struct __GLXprovider { void GlxPushProvider(__GLXprovider *provider); -void __glXsetEnterLeaveServerFuncs(void (*enter)(void), - void (*leave)(void)); -void __glXenterServer(void); -void __glXleaveServer(void); +void __glXsetEnterLeaveServerFuncs(void (*enter)(GLboolean), + void (*leave)(GLboolean)); +void __glXenterServer(GLboolean rendering); +void __glXleaveServer(GLboolean rendering); void glxSuspendClients(void); void glxResumeClients(void); |