shiny/driver/gldriver: update the open gl context after making it current

This seems necessary (at least on Mojave). Otherwise, the window seems to have the wrong viewport until it is moved or resized.

Change-Id: I0efd372e875e37056974a9d1ae99ba47896f69d5
GitHub-Last-Rev: bc6b2390876a7f5bd640b9d1a31cd6eff0222eea
GitHub-Pull-Request: golang/exp#5
Reviewed-on: https://go-review.googlesource.com/c/154461
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Nigel Tao <nigeltao@golang.org>
diff --git a/shiny/driver/gldriver/cocoa.m b/shiny/driver/gldriver/cocoa.m
index d8bfb8c..3410b58 100644
--- a/shiny/driver/gldriver/cocoa.m
+++ b/shiny/driver/gldriver/cocoa.m
@@ -34,6 +34,7 @@
 void makeCurrentContext(uintptr_t context) {
 	NSOpenGLContext* ctx = (NSOpenGLContext*)context;
 	[ctx makeCurrentContext];
+	[ctx update];
 }
 
 void flushContext(uintptr_t context) {