<?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>826</bug_id>
          
          <creation_ts>2013-09-05 17:16:51 +0200</creation_ts>
          <short_desc>GLJPanel not unbinding the texture</short_desc>
          <delta_ts>2014-06-13 04:24:41 +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>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>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Karel Petranek">karel.petranek</reporter>
          <assigned_to name="Sven Gothel">sgothel</assigned_to>
          
          
          <cf_type>---</cf_type>
          <cf_scm_refs>c427ed22244df44b71a0f1f000b0f93e56c283c2
321cac1e125f806eb437e528b343d07379b31163</cf_scm_refs>
          <cf_workaround>---</cf_workaround>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2942</commentid>
    <comment_count>0</comment_count>
    <who name="Karel Petranek">karel.petranek</who>
    <bug_when>2013-09-05 17:16:51 +0200</bug_when>
    <thetext>The GLJPanel implementation does not seem to unbind a temporary texture it uses for reading back pixels from the GPU. The texture is bound at line 1266 in GLJPanel:
gl.glBindTexture(GL.GL_TEXTURE_2D, fboTex.getName());

If an application does not use texturing but still specifies texture coordinates (for example allowing an on/off switch for displaying textures), this can cause some hard-to-find rendering issues.

It would be nice to have GLJPanel clean up and possible restore the original texture state.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2979</commentid>
    <comment_count>1</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2013-09-20 12:30:57 +0200</bug_when>
    <thetext>fixed, see

http://jogamp.org/git/?p=jogl.git;a=commit;h=c427ed22244df44b71a0f1f000b0f93e56c283c2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3965</commentid>
    <comment_count>2</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2014-06-13 04:24:41 +0200</bug_when>
    <thetext>Fix Bug 826 Regression caused by commit 41190c3830157abdf9649cbf7767e57108f55075 (Bug 975)
    
Commit 41190c3830157abdf9649cbf7767e57108f55075,
fix for &apos;Bug 975 GLJPanel&apos;s OffscreenDrawable double swap&apos;,
caused a regression of commit c427ed22244df44b71a0f1f000b0f93e56c283c2,
fix for &apos;Bug 826: GLJPanel: Fully restore TextureState and Viewport&apos;.
    
Commit 41190c3830157abdf9649cbf7767e57108f55075 issues offscreenDrawable.swapBuffers()
and hence modifying the texture unit settings before saving the TextureState,
the whole purpose of commit c427ed22244df44b71a0f1f000b0f93e56c283c2.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>