winemac: Simplify and optimize making a GL context current with no view.
commit38f579f9ba0aba49788c2ce84172ae5237929ef4
authorKen Thomases <ken@codeweavers.com>
Tue, 23 Feb 2016 03:14:30 +0000 (22 21:14 -0600)
committerAlexandre Julliard <julliard@winehq.org>
Tue, 23 Feb 2016 11:22:21 +0000 (23 20:22 +0900)
tree83c294ba1e55dc077f6bb4436a53972b4ba4d91d
parent96376059efb3e54e661da7f6c2d209e57f96175d
winemac: Simplify and optimize making a GL context current with no view.

If the context is already current, don't do +clearCurrentContext followed by
-makeCurrentContext.

Signed-off-by: Ken Thomases <ken@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/winemac.drv/cocoa_opengl.m