hw/xwin/glx: Fix glxWinCreateContext() function pointer mismatch
Fix glxWinCreateContext() function signature to align with commit 96d74138
"glx: Extend __GLXscreen::createContext to take attributes", which added more
parameters to the screen createContext function for implementing GLX_ARB_create_context
indirect.c: In function 'glxWinScreenProbe':
indirect.c:683:36: warning: assignment from incompatible pointer type
Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Reviewed-by: Colin Harrison <colin.harrison@virgin.net>
This commit is contained in:
parent
6e85660c75
commit
c9bbf8fe57
|
@ -398,7 +398,9 @@ fbConfigsDump(unsigned int n, __GLXconfig * c)
|
|||
static __GLXscreen *glxWinScreenProbe(ScreenPtr pScreen);
|
||||
static __GLXcontext *glxWinCreateContext(__GLXscreen * screen,
|
||||
__GLXconfig * modes,
|
||||
__GLXcontext * baseShareContext);
|
||||
__GLXcontext * baseShareContext,
|
||||
unsigned num_attribs,
|
||||
const uint32_t * attribs, int *error);
|
||||
static __GLXdrawable *glxWinCreateDrawable(ClientPtr client,
|
||||
__GLXscreen * screen,
|
||||
DrawablePtr pDraw,
|
||||
|
@ -1582,7 +1584,8 @@ glxWinContextDestroy(__GLXcontext * base)
|
|||
|
||||
static __GLXcontext *
|
||||
glxWinCreateContext(__GLXscreen * screen,
|
||||
__GLXconfig * modes, __GLXcontext * baseShareContext)
|
||||
__GLXconfig * modes, __GLXcontext * baseShareContext,
|
||||
unsigned num_attribs, const uint32_t * attribs, int *error)
|
||||
{
|
||||
__GLXWinContext *context;
|
||||
__GLXWinContext *shareContext = (__GLXWinContext *) baseShareContext;
|
||||
|
|
Loading…
Reference in New Issue
Block a user