wgl: silence some cast-warnings
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>
This commit is contained in:
committed by
Marge Bot
parent
e9ad8af6f3
commit
522bb08131
@@ -179,8 +179,8 @@ wglCreateContextAttribsARB(HDC hDC, HGLRC hShareContext, const int *attribList)
|
||||
}
|
||||
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,
|
||||
|
||||
@@ -68,7 +68,7 @@ wglCreateContext(
|
||||
HDC hdc )
|
||||
{
|
||||
overrideOpenGL32EntryPoints();
|
||||
return (HGLRC) DrvCreateContext(hdc);
|
||||
return (HGLRC)(UINT_PTR)DrvCreateContext(hdc);
|
||||
}
|
||||
|
||||
WINGDIAPI HGLRC APIENTRY
|
||||
@@ -77,7 +77,7 @@ wglCreateLayerContext(
|
||||
int iLayerPlane )
|
||||
{
|
||||
overrideOpenGL32EntryPoints();
|
||||
return (HGLRC) DrvCreateLayerContext( hdc, iLayerPlane );
|
||||
return (HGLRC)(UINT_PTR)DrvCreateLayerContext( hdc, iLayerPlane );
|
||||
}
|
||||
|
||||
WINGDIAPI BOOL APIENTRY
|
||||
|
||||
Reference in New Issue
Block a user