Stefan Dösinger stefan@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?