<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://jogamp.org/bugzilla/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.2"
          urlbase="https://jogamp.org/bugzilla/"
          
          maintainer="sgothel@jausoft.com"
>

    <bug>
          <bug_id>77</bug_id>
          
          <creation_ts>2004-04-26 04:45:03 +0200</creation_ts>
          <short_desc>Creation of dummy GL context fails in some configurations</short_desc>
          <delta_ts>2010-03-24 07:46:29 +0100</delta_ts>
          <reporter_accessible>0</reporter_accessible>
          <cclist_accessible>0</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>JogAmp</classification>
          <product>Jogl</product>
          <component>core</component>
          <version>1</version>
          <rep_platform>All</rep_platform>
          <op_sys>windows</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sven Gothel">sgothel</reporter>
          <assigned_to name="Sven Gothel">sgothel</assigned_to>
          
          
          <cf_type>DEFECT</cf_type>
          <cf_scm_refs></cf_scm_refs>
          <cf_workaround>---</cf_workaround>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>93</commentid>
    <comment_count>0</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2010-03-24 07:46:29 +0100</bug_when>
    <thetext>


---- 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&apos;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
</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>