winex11: Create a surface even for OpenGL windows, to allow painting the non-client area.
This commit is contained in:
parent
77b9ec8cd6
commit
47983d819f
|
@ -1114,15 +1114,6 @@ static void release_gl_drawable( struct gl_drawable *gl )
|
|||
if (gl) LeaveCriticalSection( &context_section );
|
||||
}
|
||||
|
||||
BOOL has_gl_drawable( HWND hwnd )
|
||||
{
|
||||
struct gl_drawable *gl;
|
||||
|
||||
gl = get_gl_drawable( hwnd, 0 );
|
||||
release_gl_drawable( gl );
|
||||
return gl != NULL;
|
||||
}
|
||||
|
||||
static GLXContext create_glxcontext(Display *display, struct wgl_context *context, GLXContext shareList)
|
||||
{
|
||||
GLXContext ctx;
|
||||
|
@ -3081,11 +3072,6 @@ struct opengl_funcs *get_glx_driver( UINT version )
|
|||
return NULL;
|
||||
}
|
||||
|
||||
BOOL has_gl_drawable( HWND hwnd )
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
void sync_gl_drawable( HWND hwnd, const RECT *visible_rect, const RECT *client_rect )
|
||||
{
|
||||
}
|
||||
|
|
|
@ -2060,7 +2060,6 @@ void CDECL X11DRV_WindowPosChanging( HWND hwnd, HWND insert_after, UINT swp_flag
|
|||
|
||||
if (data->embedded) goto done;
|
||||
if (data->whole_window == root_window) goto done;
|
||||
if (has_gl_drawable( hwnd )) goto done;
|
||||
if (!client_side_graphics && !layered) goto done;
|
||||
|
||||
surface_rect = get_surface_rect( visible_rect );
|
||||
|
|
|
@ -567,7 +567,6 @@ extern void release_win_data( struct x11drv_win_data *data ) DECLSPEC_HIDDEN;
|
|||
extern Window X11DRV_get_whole_window( HWND hwnd ) DECLSPEC_HIDDEN;
|
||||
extern XIC X11DRV_get_ic( HWND hwnd ) DECLSPEC_HIDDEN;
|
||||
|
||||
extern BOOL has_gl_drawable( HWND hwnd ) DECLSPEC_HIDDEN;
|
||||
extern void sync_gl_drawable( HWND hwnd, const RECT *visible_rect, const RECT *client_rect ) DECLSPEC_HIDDEN;
|
||||
extern void destroy_gl_drawable( HWND hwnd ) DECLSPEC_HIDDEN;
|
||||
|
||||
|
|
Loading…
Reference in New Issue