These casts cause warnings on x64. We're passing integers through
pointers, which works fine.
So let's make the casts a bit more explicit, to silence that warning.
Reviewed-by: Brian Paul <brianp@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4577>
}
else {
/* not using ICD */
- dhglrc = (DHGLRC) context;
- share_dhglrc = (DHGLRC) hShareContext;
+ dhglrc = (DHGLRC)(INT_PTR)context;
+ share_dhglrc = (DHGLRC)(INT_PTR)hShareContext;
}
c = stw_create_context_attribs(hDC, layerPlane, share_dhglrc,
HDC hdc )
{
overrideOpenGL32EntryPoints();
- return (HGLRC) DrvCreateContext(hdc);
+ return (HGLRC)(UINT_PTR)DrvCreateContext(hdc);
}
WINGDIAPI HGLRC APIENTRY
int iLayerPlane )
{
overrideOpenGL32EntryPoints();
- return (HGLRC) DrvCreateLayerContext( hdc, iLayerPlane );
+ return (HGLRC)(UINT_PTR)DrvCreateLayerContext( hdc, iLayerPlane );
}
WINGDIAPI BOOL APIENTRY