<?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>718</bug_id>
          
          <creation_ts>2013-04-17 12:49:00 +0200</creation_ts>
          <short_desc>Windows BITMAP Offscreen Fails w/ GLCaps other than simple RGB888</short_desc>
          <delta_ts>2013-04-18 20:52:07 +0200</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>JogAmp</classification>
          <product>Jogl</product>
          <component>windows</component>
          <version>2</version>
          <rep_platform>pc_all</rep_platform>
          <op_sys>windows</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>---</priority>
          <bug_severity>major</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>---</cf_type>
          <cf_scm_refs>1af639340bb119e4839170c6e5e3258012d99136
61a47e07975eb2fd8b1f5f60552935c993a6eef6
db24615ebaebcda88ffb7275d3a60e6400226099
4d2f4a1b75dc176b2b46de5076b587b70988ac42
0a7cd9c58537d80131dbebf102f1f639ca0eb334</cf_scm_refs>
          <cf_workaround>---</cf_workaround>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2488</commentid>
    <comment_count>0</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2013-04-17 12:49:00 +0200</bug_when>
    <thetext>[a] WindowsBitmapWGLDrawable&apos;s BITMAPINFOHEADER&apos;s BiBitCount, as well as 
[b] WindowsWGLGraphicsConfiguration choosing needs to be refined.

Better: Constrained to RGB555 and RGB888, w/ alpha optional.

Otherwise either WindowsBitmapWGLDrawable&apos;s GDI.CreateDIBSection fails [a]
or SetPixelFormat(..) fails [b].</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2491</commentid>
    <comment_count>1</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2013-04-18 02:36:21 +0200</bug_when>
    <thetext>Refine Unit Tests ; UITestCase.Snapshot: Add RGBA bits to filename.

 -  Split TestGLAutoDrawableFactoryOffscrnCapsNEWT to
       TestGLAutoDrawableFactoryGL2OffscrnCapsNEWT and
       TestGLAutoDrawableFactoryES2OffscrnCapsNEWT
 -  TestGLAutoDrawableFactoryGL2OffscrnCapsNEWT contains more &apos;Bitmap&apos; tests of 
     various caps, w/ snapshots.                                                                                                            

Filter invalid PFD configs

 - Filter invalid PFD configs
   - WindowsBitmapWGLDrawable: Clip chosenCaps to RGBA888[0|8]
   - WindowsBitmapWGLDrawable: Only use BITMAPINFOHEADER.BiBitCount=24
   - WindowsWGLGraphicsConfiguration: Only allow GDI BITMAP PFD&apos;s w/ RGB888 w/ 
      alpha &lt;= red, others may fail
    
 - WindowsWGLGraphicsConfigurationFactory.getAvailableGLCapabilities()
   - Fetch ARB caps w/o BITMAP
   - Concat GDI [BITMAP] caps</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2496</commentid>
    <comment_count>2</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2013-04-18 09:08:26 +0200</bug_when>
    <thetext>Further restriction of Windows BITMAP PFD&apos;s - RGB888 and !alpha only

On Windows Vista machines, using alpha, i.e. RGB8888 failed to SetPixelFormat(..),
hence only allow RGB888.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2499</commentid>
    <comment_count>3</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2013-04-18 19:52:39 +0200</bug_when>
    <thetext>4d2f4a1b75dc176b2b46de5076b587b70988ac42

Exclude updateGraphicsConfigurationARB(..) usage for 
BITMAP (Windows Vista does report BITMAP w/ ARB PFD).

On Windows Vista machines, ARB PFD selection reports BITMAP which is attempted to be used.
Excluse updateGraphicsConfigurationARB(..) from BITMAP query, similar to getAvailableGLCapabilitiesARB()
from commit 61a47e07975eb2fd8b1f5f60552935c993a6eef6.

+++

0a7cd9c58537d80131dbebf102f1f639ca0eb334

WindowsBitmapWGLDrawable: Requires GLProfile.GL2, fix BITMAP GLCaps ASAP at Ctor instead of setRealized(true); WindowsWGLContext: Exclude ARB creation for BITMAP

Unit Test TestGLAutoDrawableFactoryGLnBitmapCapsNEWT added using BITMAP on GLProfile.getDefault()</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2500</commentid>
    <comment_count>4</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2013-04-18 20:52:07 +0200</bug_when>
    <thetext>https://jogamp.org/chuck/job/jogl/971/ shows good results on Vista and Win7</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>