winex11: Remove unused "parent" parameter from create_gl_drawable().

This commit is contained in:
Ken Thomases 2014-03-21 00:19:02 -05:00 committed by Alexandre Julliard
parent 6696e7d9e1
commit eb235b6b98
1 changed files with 3 additions and 4 deletions

View File

@ -1250,7 +1250,7 @@ static void free_gl_drawable( struct gl_drawable *gl )
/*********************************************************************** /***********************************************************************
* create_gl_drawable * create_gl_drawable
*/ */
static BOOL create_gl_drawable( HWND hwnd, HWND parent, struct gl_drawable *gl ) static BOOL create_gl_drawable( HWND hwnd, struct gl_drawable *gl )
{ {
gl->drawable = 0; gl->drawable = 0;
@ -1323,7 +1323,6 @@ static BOOL create_gl_drawable( HWND hwnd, HWND parent, struct gl_drawable *gl )
*/ */
static BOOL set_win_format( HWND hwnd, const struct wgl_pixel_format *format ) static BOOL set_win_format( HWND hwnd, const struct wgl_pixel_format *format )
{ {
HWND parent = GetAncestor( hwnd, GA_PARENT );
struct gl_drawable *gl, *prev; struct gl_drawable *gl, *prev;
gl = HeapAlloc( GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(*gl) ); gl = HeapAlloc( GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(*gl) );
@ -1343,7 +1342,7 @@ static BOOL set_win_format( HWND hwnd, const struct wgl_pixel_format *format )
gl->rect.right = min( max( 1, gl->rect.right ), 65535 ); gl->rect.right = min( max( 1, gl->rect.right ), 65535 );
gl->rect.bottom = min( max( 1, gl->rect.bottom ), 65535 ); gl->rect.bottom = min( max( 1, gl->rect.bottom ), 65535 );
if (!create_gl_drawable( hwnd, parent, gl )) if (!create_gl_drawable( hwnd, gl ))
{ {
XFree( gl->visual ); XFree( gl->visual );
HeapFree( GetProcessHeap(), 0, gl ); HeapFree( GetProcessHeap(), 0, gl );
@ -1450,7 +1449,7 @@ void set_gl_drawable_parent( HWND hwnd, HWND parent )
goto done; goto done;
} }
if (!create_gl_drawable( hwnd, parent, gl )) if (!create_gl_drawable( hwnd, gl ))
{ {
XDeleteContext( gdi_display, (XID)hwnd, gl_hwnd_context ); XDeleteContext( gdi_display, (XID)hwnd, gl_hwnd_context );
release_gl_drawable( gl ); release_gl_drawable( gl );