mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-15 02:04:46 +00:00
opengl32: Implement wow64 thunk for wglCreatePbufferARB.
This commit is contained in:
parent
4f1ed0873d
commit
bfb6119fb3
|
@ -172,6 +172,7 @@ my %manual_wow64_thunks =
|
|||
"glPathGlyphIndexRangeNV" => 1,
|
||||
"wglCreateContext" => 1,
|
||||
"wglCreateContextAttribsARB" => 1,
|
||||
"wglCreatePbufferARB" => 1,
|
||||
"wglDeleteContext" => 1,
|
||||
"wglGetProcAddress" => 1,
|
||||
"wglMakeContextCurrentARB" => 1,
|
||||
|
|
|
@ -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, ¶ms );
|
||||
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[] =
|
||||
|
|
|
@ -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( ¶ms ))) return status;
|
||||
params32->ret = (UINT_PTR)params.ret;
|
||||
return STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
NTSTATUS wow64_wgl_wglDeleteContext( void *args )
|
||||
{
|
||||
struct
|
||||
|
|
Loading…
Reference in a new issue