Bug 77 - Creation of dummy GL context fails in some configurations
Summary: Creation of dummy GL context fails in some configurations
Status: VERIFIED FIXED
Alias: None
Product: Jogl
Classification: JogAmp
Component: core (show other bugs)
Version: 1
Hardware: All windows
: P2 normal
Assignee: Sven Gothel
URL:
Depends on:
Blocks:
 
Reported: 2004-04-26 04:45 CEST by Sven Gothel
Modified: 2010-03-24 07:46 CET (History)
0 users

See Also:
Type: DEFECT
SCM Refs:
Workaround: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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