<?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>962</bug_id>
          
          <creation_ts>2014-02-06 15:28:51 +0100</creation_ts>
          <short_desc>AWTGLReadBufferUtil should use aligned BufferedImage [for resized images]; Fix GLReadBufferUtil GL_PACK_ROW_LENGTH</short_desc>
          <delta_ts>2014-02-13 01:06:56 +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>awt</component>
          <version>2</version>
          <rep_platform>All</rep_platform>
          <op_sys>all</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>enhancement</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>1d2515da352a79c239efecdfa3e0fade47779781
8631e403aa0c02c53b06819ef9b112af1885d4f7</cf_scm_refs>
          <cf_workaround>---</cf_workaround>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>3684</commentid>
    <comment_count>0</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2014-02-06 15:28:51 +0100</bug_when>
    <thetext>AWTGLPixelBuffer is being reused when used via AWTGLPixelBufferProvider
even when resized. 

AWTGLPixelBufferProvider uses  GLPixelBufferProvider&apos;s requiresNewBuffer(..) 
which returns true if 
  - allowRowStride==true and pixel-buffer size &lt; required-size, or
  - allowRowStride==false and pixel-buffer size &lt; required _or_ width doesn&apos;t match

otherwise it returns true, i.e. the AWTGLPixelBuffer is reused.

Hence the used BufferedImage might need to be aligned,
i.e. using AWTGLPixelBuffer&apos;s getAlignedImage(..).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3715</commentid>
    <comment_count>1</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2014-02-13 01:03:06 +0100</bug_when>
    <thetext>GLReadBufferUtil shall use current texture-data width for GL_PACK_ROW_LENGTH,
not the static GLPixelBuffer&apos;s width, which may not reflect image dimension (resize)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3716</commentid>
    <comment_count>2</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2014-02-13 01:06:56 +0100</bug_when>
    <thetext>1d2515da352a79c239efecdfa3e0fade47779781
  As described ..

8631e403aa0c02c53b06819ef9b112af1885d4f7
  TextureIO: Fix PNGTextureWriter Vertical-Flip, i.e. pass TextureData&apos;s getMustFlipVertically() to PNGPixelRect</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>