Skip to content

Commit

Permalink
fixup! winex11.drv: fshack/GL: Support fshack on offscreen drawables.
Browse files Browse the repository at this point in the history
CW-Bug-Id: #22950
  • Loading branch information
Paul Gofman committed Nov 7, 2023
1 parent 271b699 commit 4a2cac9
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions dlls/winex11.drv/opengl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1550,10 +1550,12 @@ static struct gl_drawable *create_gl_drawable( HWND hwnd, const struct wgl_pixel
gl->drawable = pglXCreateWindow( gdi_display, gl->format->fbconfig, gl->window, NULL );
pXCompositeRedirectWindow( gdi_display, gl->window, CompositeRedirectManual );
}
data = get_win_data( hwnd );
gl->fs_hack = data->fs_hack || fs_hack_get_gamma_ramp( NULL );
if (gl->fs_hack) TRACE( "Window %p has the fullscreen hack enabled\n", hwnd );
release_win_data( data );
if ((data = get_win_data( hwnd )))
{
gl->fs_hack = data->fs_hack || fs_hack_get_gamma_ramp( NULL );
if (gl->fs_hack) TRACE( "Window %p has the fullscreen hack enabled\n", hwnd );
release_win_data( data );
}
if (gl->layered_type) detach_client_window( hwnd, 0 );
TRACE( "%p created child %lx drawable %lx\n", hwnd, gl->window, gl->drawable );
}
Expand Down

0 comments on commit 4a2cac9

Please sign in to comment.