<?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>1241</bug_id>
          
          <creation_ts>2015-10-02 14:47:59 +0200</creation_ts>
          <short_desc>Util&apos;s Texture.coords (image coordinates) not updated properly</short_desc>
          <delta_ts>2015-10-03 01:14:55 +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>util</component>
          <version>2.3.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>P2</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>
          <cc>gouessej</cc>
    
    <cc>paolo</cc>
          
          <cf_type>DEFECT</cf_type>
          <cf_scm_refs>670df25aae92079945a83401db9722d543730193</cf_scm_refs>
          <cf_workaround>---</cf_workaround>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>5316</commentid>
    <comment_count>0</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2015-10-02 14:47:59 +0200</bug_when>
    <thetext>See Bug 1218 comment 10.

&quot;The bug is on texture.getImageTexCoords(). It gives [h: 0.0 - 1.0, v: 0.0 - 1.0] also with GL_TEXTURE_RECTANGLE, for this the texture is not displayed correctly.
If you update tex coords by manually calling for example setMustFlipVertically() the returned coords are correct.&quot;

&apos;Texture.updateTexCoords()&apos; must be issued if the texture target is changed!

&apos;Texture.setImageSize(final int width, final int height, final int target)&apos;
argument &apos;target&apos;, i.e. texture target is ignored.

&apos;Texture.updateImage(..)&apos; also fails calling &apos;updateTexCoords()&apos;
on changes texture target.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>5319</commentid>
    <comment_count>1</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2015-10-03 01:14:55 +0200</bug_when>
    <thetext>commit 670df25aae92079945a83401db9722d543730193
    
Adding &apos;imageTarget&apos;, i.e. GL target for this texture or 
its sub-components if cubemap.

The imageTarget preserves the used 2D image type
for the 2D Texture coordinates.
    
Note: &apos;Texture.updateImage(final GL gl, final TextureData data, final int targetOverride)&apos;
    
This method needs an overhaul targeted for 2.4.0,
especially the semantics of argument &apos;targetOverride&apos; 
which currently is quite ambiguous (implementation).

Further this method ignores the current setting of texture target
and w/ &apos;targetOverride&apos; its implementation seems quite adventurous. 
    
See Bug 1241</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>