jogl
  1. jogl
  2. JOGL-77

Creation of dummy GL context fails in some configurations

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: current
    • Fix Version/s: milestone 1
    • Component/s: jogl
    • Labels:
      None
    • Environment:

      Operating System: Windows XP
      Platform: PC

    • Issuezilla Id:
      77

      Description

      In some configurations (esp. with ATI card, latest drivers, WinXP), creation of
      dummy GL context fails when system tries to swap buffers on newly created dummy
      context.

      To fix this, I suggest to disable autoRedraws and automatic swapBuffers for
      dummy context, because of it is not needed as far as dummy context is only used
      to get extension strings and function pointers.

      Proposed change is to add disabling code for these modes just after setting
      zero size of GLCanvas in WindowsGLContextFactory.getDummyGLContext(...):

      canvas.setSize(0, 0);
      canvas.setNoAutoRedrawMode(true);
      canvas.setAutoSwapBufferMode(false);

      This change is proven to fix described wrong behavior and additionally provides
      (really minor) improvement for app startup time (esp. if VSync is enabled).

      Yuri Vl. Gushchin
      JProof

        Activity

        Hide
        kbr added a comment -

        Thanks for the patch. It's been applied to the CVS repository.

        Show
        kbr added a comment - Thanks for the patch. It's been applied to the CVS repository.

          People

          • Assignee:
            jogl-issues
            Reporter:
            yvg
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: