jdk/src/macosx/native/sun/java2d/opengl/CGLSurfaceData.m
changeset 12652 6fddf8394164
parent 12047 320a714614e9
child 23010 6dadb192ad81
equal deleted inserted replaced
12651:8c69dd24bf07 12652:6fddf8394164
   202         }
   202         }
   203 
   203 
   204         if (!CGLSD_MakeCurrentToScratch(env, oglc)) {
   204         if (!CGLSD_MakeCurrentToScratch(env, oglc)) {
   205             return NULL;
   205             return NULL;
   206         }
   206         }
   207     } else if ([NSOpenGLContext currentContext] == nil) {
   207     // make sure our context is current
       
   208     } else if ([NSOpenGLContext currentContext] != ctxinfo->context) {
   208         [ctxinfo->context makeCurrentContext];
   209         [ctxinfo->context makeCurrentContext];
   209     }
   210     }
   210 
   211 
   211     if (OGLC_IS_CAP_PRESENT(oglc, CAPS_EXT_FBOBJECT)) {
   212     if (OGLC_IS_CAP_PRESENT(oglc, CAPS_EXT_FBOBJECT)) {
   212         // the GL_EXT_framebuffer_object extension is present, so this call
   213         // the GL_EXT_framebuffer_object extension is present, so this call