<?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>720</bug_id>
          
          <creation_ts>2013-04-17 16:54:03 +0200</creation_ts>
          <short_desc>Unify all platform specific GLContextImpl specializations - Allowing to swap on- and offscreen GLDrawables w/ unique GLContext instance</short_desc>
          <delta_ts>2013-04-18 03:21:12 +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>core</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>critical</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>719</blocked>
          <everconfirmed>0</everconfirmed>
          <reporter name="Sven Gothel">sgothel</reporter>
          <assigned_to name="Sven Gothel">sgothel</assigned_to>
          <cc>sgothel</cc>
          
          <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>2490</commentid>
    <comment_count>0</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2013-04-17 16:54:03 +0200</bug_when>
    <thetext></thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2493</commentid>
    <comment_count>1</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2013-04-18 03:21:12 +0200</bug_when>
    <thetext>GLContextImpl shall have only _one_ unique platform derivative
to allow proper swapping of GLDrawables of any type via:
  - &apos;GLAutoDrawable.setContext(GLContext newCtx, boolean destroyPrevCtx)&apos;, which calls
  - &apos;GLContext.setGLDrawable(GLDrawable readWrite, boolean setWriteOnly)&apos;
    
Exception: External context may be specialized.
    
All drawable specific property handling shall be provided
and implemented (if possible) via GLDrawable specializations.
    
 - GLContext.isGLOrientationFlippedVertical() -&gt; GLDrawable.isGLOriented()

 - PNGImage.createFromData() takes &apos;isGLOriented&apos; to properly handle vertical flipping simply 
   by line ordering

 - TextureIO&apos;s PNG writer passes TextureData&apos;s getMustFlipVertically() 
    as isGLOriented to PNGImage.createFromData()

 - GLReadBufferUtil respects GLDrawable&apos;s isGLOriented() when creating TextureData instance.

 - Screenshot respects GLDrawable&apos;s isGLOriented()
    
 - Screenshot is deprecated, use GLReadBufferUtil.
    
 - Removed all PBuffer attributes, i.e. floatingPoint, RenderToTexture and RenderToTextureRectangle.
   - Allows removal of special pbuffer handling in GLContext* implementations.
   - Removed also from GLCapabilities*
   - Removed from deprecated GLPbuffer
    
   Impact:
    - Low, users who desire to render into a texture shall use our FBO GLOffscreenDrawable.
    - Only use case was the deprecated GLPbuffer
    - floating point framebuffer technology is still patented anyways :)
    
 - Removed Java2DGLContext, which was only used for OSX&apos;s GLJPanel Java2D bridge,
   which is no more supported anyways.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>