changeset 4890:40084a75a36f

7154505: [macosx] NetBeans sometimes starts with no text rendered Reviewed-by: prr, kizune
author bae
date Sat, 07 Apr 2012 12:46:32 +0400
parents 6bc860cd5ccf
children 24a9125a2c96
files src/macosx/native/sun/java2d/opengl/CGLGraphicsConfig.m
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/macosx/native/sun/java2d/opengl/CGLGraphicsConfig.m	Wed Apr 04 23:15:58 2012 +0100
+++ b/src/macosx/native/sun/java2d/opengl/CGLGraphicsConfig.m	Sat Apr 07 12:46:32 2012 +0400
@@ -312,7 +312,10 @@
 
     GLint contextVirtualScreen = [context currentVirtualScreen];
 #if USE_NSVIEW_FOR_SCRATCH
-    [context setView: scratchSurface];
+    /* the scratch surface will be set to the view
+     * later on the flusher thread by OGLSD_SetScratchSurface.
+     */
+    //[context setView: scratchSurface];
 #else
     [context
         setPixelBuffer: scratchSurface