Bug 77

Summary: Creation of dummy GL context fails in some configurations
Product: [JogAmp] Jogl Reporter: Sven Gothel <sgothel>
Component: coreAssignee: Sven Gothel <sgothel>
Status: VERIFIED FIXED    
Severity: normal    
Priority: P2    
Version: 1   
Hardware: All   
OS: windows   
Type: DEFECT SCM Refs:
Workaround: ---

Description Sven Gothel 2010-03-24 07:46:29 CET


---- Reported by yvg 2004-04-26 04:45:03 ----

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



---- Additional Comments From kbr 2004-04-26 09:20:53 ----

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




--- Bug imported by sgothel@jausoft.com 2010-03-24 07:46 EDT  ---

This bug was previously known as _bug_ 77 at https://jogl.dev.java.net/bugs/show_bug.cgi?id=77