~ubuntu-branches/debian/sid/swt-gtk/sid

« back to all changes in this revision

Viewing changes to org/eclipse/swt/opengl/GLCanvas.java

  • Committer: Bazaar Package Importer
  • Author(s): Adrian Perez
  • Date: 2009-12-07 10:22:24 UTC
  • mfrom: (1.2.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20091207102224-70w2tax575mcks1w
Tags: 3.5.1-1
* New upstream release. Closes: #558663.
* debian/control: 
  - Add Vcs-* fields for Git repository.
  - Allow DM-Uploads.
  - Remove "Conflicts", package should live with eclipse.
* debian/rules: Fix default-java path around AWT_LIB_PATH.
* debian/copyright: Minor update.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*******************************************************************************
2
 
 * Copyright (c) 2000, 2008 IBM Corporation and others.
 
2
 * Copyright (c) 2000, 2009 IBM Corporation and others.
3
3
 * All rights reserved. This program and the accompanying materials
4
4
 * are made available under the terms of the Eclipse Public License v1.0
5
5
 * which accompanies this distribution, and is available at
116
116
        OS.XFree (infoPtr);
117
117
        int /*long*/ screen = OS.gdk_screen_get_default ();
118
118
        int /*long*/ gdkvisual = OS.gdk_x11_screen_lookup_visual (screen, vinfo.visualid);
119
 
        //FIXME- share lists
120
 
        //context = GLX.glXCreateContext (xDisplay, info, share == null ? 0 : share.context, true);
121
 
        context = GLX.glXCreateContext (xDisplay, vinfo, 0, true);
 
119
        int /*long*/ share = data.shareContext != null ? data.shareContext.context : 0;
 
120
        context = GLX.glXCreateContext (xDisplay, vinfo, share, true);
122
121
        if (context == 0) SWT.error (SWT.ERROR_NO_HANDLES);
123
122
        GdkWindowAttr attrs = new GdkWindowAttr ();
124
123
        attrs.width = 1;