<?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>459</bug_id>
          
          <creation_ts>2011-01-16 21:20:50 +0100</creation_ts>
          <short_desc>Shader compilation fails with caps.setStencilBits(8) set</short_desc>
          <delta_ts>2011-02-05 04:04:31 +0100</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>JogAmp</classification>
          <product>Jogl</product>
          <component>opengl</component>
          <version>2</version>
          <rep_platform>pc_x86_64</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>---</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Wade Walker">wwalker3</reporter>
          <assigned_to name="Sven Gothel">sgothel</assigned_to>
          
          
          <cf_type>---</cf_type>
          <cf_scm_refs>8adc04788a6d9dd44de5a4636b46d14dbb70b799
e2040ada5a94b466ba95e84a497290c069d377bb</cf_scm_refs>
          <cf_workaround>---</cf_workaround>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>773</commentid>
    <comment_count>0</comment_count>
    <who name="Wade Walker">wwalker3</who>
    <bug_when>2011-01-16 21:20:50 +0100</bug_when>
    <thetext>On Windows, shader compilation fails if we set caps.setStencilBits(8). Setting caps.setSampleBuffers(true) fixes the problem, as does removing the stencil bit setting.

Created unit test, confirmed failure on Windows and pass on Linux. Submitting pull request for unit test soon, after preliminary debugging.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>774</commentid>
    <comment_count>1</comment_count>
    <who name="Wade Walker">wwalker3</who>
    <bug_when>2011-01-16 22:49:00 +0100</bug_when>
    <thetext>Submitted pull request for failing JUnit test case at  https://github.com/sgothel/jogl/pull/19. The original report of this bug was on the forum at http://jogamp.762907.n3.nabble.com/JOGL2-GLCapabilities-Windows-td2153961.html.

The problem seems to be in the capabilities choosing code, so I&apos;ll wait for your next checkin before digging in too deep.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>809</commentid>
    <comment_count>2</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2011-02-02 21:30:25 +0100</bug_when>
    <thetext>merged test, fixed by GLCapabilities change 8adc04788a6d9dd44de5a4636b46d14dbb70b799
test passed in 280</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>816</commentid>
    <comment_count>3</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2011-02-05 02:58:39 +0100</bug_when>
    <thetext>still exists on NV/Win7 .. fixing now</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>817</commentid>
    <comment_count>4</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2011-02-05 04:04:31 +0100</bug_when>
    <thetext>commit e2040ada5a94b466ba95e84a497290c069d377bb
Author: Sven Gothel &lt;sgothel@jausoft.com&gt;
Date:   Sat Feb 5 04:03:51 2011 +0100

    Fix bug #459 NV/Win7 PDF/caps selection
    
    Scenario
      - NV / Win7 driver version 266.58&apos;s
      - Caps: on-scr, rgba 8/8/8/0, accum-rgba 0/0/0/0, dp/st/ms: 16/8/0, dbl, mono
    
    The above &apos;wglChoosePixelFormatARB&apos; impl returns an array of pixelformats,
    where the 1st entry is not hardware accelerated!
    This should be considered a bug in NV&apos;s driver, since the array should return
    a list ordered from &apos;best&apos; to &apos;worst&apos;.
    
    Workaround trying explicit hw acceleration 1st, then generic, then software.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>