< prev index next >

src/java.desktop/windows/native/libawt/windows/awt_Win32GraphicsDevice.cpp

Print this page
rev 14462 : 6477756: GraphicsDevice.getConfigurations() is slow taking 3 or more seconds
Reviewed-by: serb

@@ -927,10 +927,16 @@
     CHECK_NULL(AwtWin32GraphicsDevice::paletteChangedMID);
 
     // Only want to call this once per session
     make_uns_ordered_dither_array(img_oda_alpha, 256);
 
+    // workaround JDK-6477756
+    static HMODULE libOpenGL32 = NULL;
+    if (libOpenGL32 == NULL) {
+        libOpenGL32 = JDK_LoadSystemLibrary("opengl32.dll");
+    }
+
     CATCH_BAD_ALLOC;
 }
 
 } /* extern "C" */
 
< prev index next >