| Index: ui/gl/gl_surface_wgl.cc
|
| diff --git a/ui/gl/gl_surface_wgl.cc b/ui/gl/gl_surface_wgl.cc
|
| index 045a624bd0a881150a9277aed09e5aeda5e70e37..e301bce6b037a0bdbd28dde06995d403481c09c9 100644
|
| --- a/ui/gl/gl_surface_wgl.cc
|
| +++ b/ui/gl/gl_surface_wgl.cc
|
| @@ -165,25 +165,6 @@ bool GLSurfaceWGL::InitializeOneOff() {
|
| if (!wgl_display->Init())
|
| return false;
|
|
|
| - // Create a temporary GL context to bind to extension entry points.
|
| - HGLRC gl_context = wglCreateContext(wgl_display->device_context());
|
| - if (!gl_context) {
|
| - LOG(ERROR) << "Failed to create temporary context.";
|
| - return false;
|
| - }
|
| - if (!wglMakeCurrent(wgl_display->device_context(), gl_context)) {
|
| - LOG(ERROR) << "Failed to make temporary GL context current.";
|
| - wglDeleteContext(gl_context);
|
| - return false;
|
| - }
|
| - // Get bindings to extension functions that cannot be acquired without a
|
| - // current context.
|
| - InitializeGLBindingsGL();
|
| - InitializeGLBindingsWGL();
|
| -
|
| - wglMakeCurrent(NULL, NULL);
|
| - wglDeleteContext(gl_context);
|
| -
|
| g_display = wgl_display.release();
|
| initialized = true;
|
| return true;
|
|
|