diff options
author | Brian Nguyen <brnguyen@nvidia.com> | 2013-11-24 15:53:18 -0800 |
---|---|---|
committer | brnguyen <brnguyen@nvidia.com> | 2013-11-25 15:32:12 -0800 |
commit | 4628149a0b4968887916a352c815921a73f9b7c0 (patch) | |
tree | 59ab4522ba976d25ce42cf8ca0006ed794167747 /src/GLdispatch/GLdispatch.h | |
parent | e48078840c96f093ee810f2277dbb61031eaa956 (diff) |
Add context, dispatch parameters to __glDispatchMakeCurrent()
When making current, assign the API state's new context and dispatch table
in GLdispatch rather than GLX. This avoids consistency issues if the API state
is unchanged but the current dispatch or context may have changed.
Update the __glDispatchMakeCurrent() call in
__glXMakeGLDispatchCurrent() to get libglvnd building for now; a later change
will remove libglxgldispatch.c altogether.
Signed-off-by: Brian Nguyen <brnguyen@nvidia.com>
Diffstat (limited to 'src/GLdispatch/GLdispatch.h')
-rw-r--r-- | src/GLdispatch/GLdispatch.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/GLdispatch/GLdispatch.h b/src/GLdispatch/GLdispatch.h index f7dd618..12c121d 100644 --- a/src/GLdispatch/GLdispatch.h +++ b/src/GLdispatch/GLdispatch.h @@ -144,10 +144,12 @@ PUBLIC __GLdispatchTable *__glDispatchCreateTable( PUBLIC void __glDispatchDestroyTable(__GLdispatchTable *dispatch); /*! - * This makes the given API state current, and sets the current dispatch - * table and context based on the settings in the API state. + * This makes the given API state current, and assigns this API state + * the passed-in current dispatch table and context. */ -PUBLIC void __glDispatchMakeCurrent(__GLdispatchAPIState *apiState); +PUBLIC void __glDispatchMakeCurrent(__GLdispatchAPIState *apiState, + __GLdispatchTable *dispatch, + void *context); /*! * This makes the NOP dispatch table current and sets the current context and |