<?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>719</bug_id>
          
          <creation_ts>2013-04-17 15:07:09 +0200</creation_ts>
          <short_desc>Windows BITMAP Offscreen Orientation is not propagated through API (i.e. vertically flipped when read-out w/ OpenGL API via glReadPixels())</short_desc>
          <delta_ts>2013-04-18 03:22:01 +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>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>
          <dependson>720</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sven Gothel">sgothel</reporter>
          <assigned_to name="Sven Gothel">sgothel</assigned_to>
          
          
          <cf_type>---</cf_type>
          <cf_scm_refs>fd418a69eca7b8c1bb74244982305fc6004d0a52</cf_scm_refs>
          <cf_workaround>---</cf_workaround>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2489</commentid>
    <comment_count>0</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2013-04-17 15:07:09 +0200</bug_when>
    <thetext>An offscreen GLDrawable using BITMAP on Windows shall expose the same behavior than 
other impl.

Culprit is WindowsBitmapWGLDrawable, which flips the GDI DiB via
BITMAPINFOHEADER&apos;s height field while assigning the negative height.

This shall not be done, since we don&apos;t read out the DiB directly, 
but via OpenGL.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2492</commentid>
    <comment_count>1</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2013-04-18 02:51:45 +0200</bug_when>
    <thetext>Depends on Bug 720, since cleaning up GLContextImpl* is required to move 
property &apos;GLContext.isGLOrientationFlippedVertical()&apos;
to &apos;GLDrawable.isGLOriented()&apos; where it belongs!

Windows BITMAP GLDrawable impl. isGLOriented() shall return false,
while we keep the BITMAPINFOHEADER&apos;s height field negative 
to remove the need for vertical flip when used w/ AWT or Windows, ..

Then property &apos;GLDrawable.isGLOriented()&apos; has to be recognized throughout the
utility functions, i.e. TextureData&apos;s mustFlipVertically and hence TextureIO writer.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>