| Index: src/gpu/gl/win/GrGLCreateNativeInterface_win.cpp
|
| diff --git a/src/gpu/gl/win/GrGLCreateNativeInterface_win.cpp b/src/gpu/gl/win/GrGLCreateNativeInterface_win.cpp
|
| index 06e406f8597d13582150c047b14657ec8033940e..26695b3e5a7d99c61ee1c8c8f779ffae6181de89 100644
|
| --- a/src/gpu/gl/win/GrGLCreateNativeInterface_win.cpp
|
| +++ b/src/gpu/gl/win/GrGLCreateNativeInterface_win.cpp
|
| @@ -41,10 +41,6 @@ private:
|
| };
|
|
|
| const GrGLInterface* GrGLCreateNativeInterface() {
|
| - // wglGetProcAddress requires a context.
|
| - // GL Function pointers retrieved in one context may not be valid in another
|
| - // context. For that reason we create a new GrGLInterface each time we're
|
| - // called.
|
| AutoLibraryUnload alu("opengl32.dll");
|
| if (NULL == alu.get()) {
|
| return NULL;
|
| @@ -75,7 +71,7 @@ const GrGLInterface* GrGLCreateNativeInterface() {
|
| // We must have array and element_array buffer objects.
|
| return NULL;
|
| }
|
| - GrGLInterface* interface = new GrGLInterface();
|
| + GrGLInterface* interface = SkNEW(GrGLInterface);
|
|
|
| // Functions that are part of GL 1.1 will return NULL in
|
| // wglGetProcAddress
|
|
|