[1/7] WineD3D: use the window size as drawable size

Alexandre Julliard julliard at winehq.org
Fri Aug 1 02:49:17 CDT 2008


Stefan Dösinger <stefan at codeweavers.com> writes:

> @@ -4681,7 +4681,9 @@ static void viewport_miscpart(DWORD state, IWineD3DStateBlockImpl *stateblock, W
>                     stateblock->viewport.Width, stateblock->viewport.Height);
>      } else {
>          target = (IWineD3DSurfaceImpl *) stateblock->wineD3DDevice->render_targets[0];
> +        LEAVE_GL();
>          target->get_drawable_size(target, &width, &height);
> +        ENTER_GL();

That's ugly, the lock isn't even entered in that function. Can we please
start to clean up the ENTER_GL mess to only grab the lock around GL
calls and not over huge amounts of code including nested functions?

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list