opengl32: Implement wow64 thunk for wglCreatePbufferARB.

This commit is contained in:
Rémi Bernon 2022-11-14 22:52:14 +01:00 committed by Alexandre Julliard
parent 4f1ed0873d
commit bfb6119fb3
3 changed files with 27 additions and 23 deletions

View file

@ -172,6 +172,7 @@ my %manual_wow64_thunks =
"glPathGlyphIndexRangeNV" => 1,
"wglCreateContext" => 1,
"wglCreateContextAttribsARB" => 1,
"wglCreatePbufferARB" => 1,
"wglDeleteContext" => 1,
"wglGetProcAddress" => 1,
"wglMakeContextCurrentARB" => 1,

View file

@ -60644,29 +60644,6 @@ static NTSTATUS wow64_ext_wglChoosePixelFormatARB( void *args )
return status;
}
static NTSTATUS wow64_ext_wglCreatePbufferARB( void *args )
{
struct
{
PTR32 hDC;
int iPixelFormat;
int iWidth;
int iHeight;
PTR32 piAttribList;
PTR32 ret;
} *params32 = args;
struct wglCreatePbufferARB_params params =
{
.hDC = ULongToPtr(params32->hDC),
.iPixelFormat = params32->iPixelFormat,
.iWidth = params32->iWidth,
.iHeight = params32->iHeight,
.piAttribList = ULongToPtr(params32->piAttribList),
};
FIXME( "params32 %p, params %p stub!\n", params32, &params );
return STATUS_NOT_IMPLEMENTED;
}
static NTSTATUS wow64_ext_wglDestroyPbufferARB( void *args )
{
struct
@ -60988,6 +60965,7 @@ extern NTSTATUS wow64_wgl_wglGetProcAddress( void *args ) DECLSPEC_HIDDEN;
extern NTSTATUS wow64_wgl_wglMakeCurrent( void *args ) DECLSPEC_HIDDEN;
extern NTSTATUS wow64_ext_glPathGlyphIndexRangeNV( void *args ) DECLSPEC_HIDDEN;
extern NTSTATUS wow64_ext_wglCreateContextAttribsARB( void *args ) DECLSPEC_HIDDEN;
extern NTSTATUS wow64_ext_wglCreatePbufferARB( void *args ) DECLSPEC_HIDDEN;
extern NTSTATUS wow64_ext_wglMakeContextCurrentARB( void *args ) DECLSPEC_HIDDEN;
const unixlib_entry_t __wine_unix_call_wow64_funcs[] =

View file

@ -1111,6 +1111,31 @@ NTSTATUS wow64_ext_wglCreateContextAttribsARB( void *args )
return STATUS_SUCCESS;
}
NTSTATUS wow64_ext_wglCreatePbufferARB( void *args )
{
struct
{
PTR32 hDC;
GLint iPixelFormat;
GLint iWidth;
GLint iHeight;
PTR32 piAttribList;
PTR32 ret;
} *params32 = args;
struct wglCreatePbufferARB_params params =
{
.hDC = ULongToPtr(params32->hDC),
.iPixelFormat = params32->iPixelFormat,
.iWidth = params32->iWidth,
.iHeight = params32->iHeight,
.piAttribList = ULongToPtr(params32->piAttribList),
};
NTSTATUS status;
if ((status = ext_wglCreatePbufferARB( &params ))) return status;
params32->ret = (UINT_PTR)params.ret;
return STATUS_SUCCESS;
}
NTSTATUS wow64_wgl_wglDeleteContext( void *args )
{
struct