<?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>79</bug_id>
          
          <creation_ts>2004-04-27 11:44:18 +0200</creation_ts>
          <short_desc>PBuffers on macintosh fail to glCopyTexSubImage2D</short_desc>
          <delta_ts>2010-03-24 07:46:31 +0100</delta_ts>
          <reporter_accessible>0</reporter_accessible>
          <cclist_accessible>0</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>JogAmp</classification>
          <product>Jogl</product>
          <component>core</component>
          <version>1</version>
          <rep_platform>All</rep_platform>
          <op_sys>macosx</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</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>DEFECT</cf_type>
          <cf_scm_refs></cf_scm_refs>
          <cf_workaround>---</cf_workaround>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>95</commentid>
    <comment_count>0</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2010-03-24 07:46:31 +0100</bug_when>
    <thetext>


---- Reported by raverboy 2004-04-27 11:44:18 ----

In order to get around various artifacts caused by failed pixel ownership 
tests, I render my offscreen textures to a pbuffer instead of to the 
framebuffer.

This now works correctly on Windows and Linux with 1.1 beta 2, but on Macintosh 
I get on opengl error 1282 (invalid operation) when I try copying the buffer to 
a texture.

If I&apos;ve read my docs correctly, 1282 should only happen if I do the copy within 
a begin/end (I&apos;m not), or if the texture hasn&apos;t been initialized (it is).


- The line of code that causes the error:
gl.glCopyTexSubImage2D(GL.GL_TEXTURE_2D, 0, 0, 0, 0, 0, 256, 256);

- The full test case source code:
http://www.wurmonline.com/newclient/PBufferTest.java

- A JNLP to the test case:
http://www.wurmonline.com/newclient/pbuffertest.jnlp



---- Additional Comments From kbr 2004-04-29 14:58:36 ----

It looks like the Mac OS X pbuffer support was never tested. The code has been rewritten and the 
attached test case now runs properly (though slowly -- not sure if this is a bug in the new code or the 
GeForce 4 MX I&apos;m running with). The HWShadowmapsSimple and ProceduralTexturePhysics demos still 
don&apos;t work, but I haven&apos;t had a chance to look into why. Problems were expected with these demos 
because of differences in supported extensions between the Mac OS X NVidia OpenGL drivers (which 
Apple provides) and the Windows and Linux NVidia OpenGL drivers (which NVidia provides).

I&apos;m closing this as fixed. Please open a new issue if there are still problems, including performance 
problems.




--- Bug imported by sgothel@jausoft.com 2010-03-24 07:46 EDT  ---

This bug was previously known as _bug_ 79 at https://jogl.dev.java.net/bugs/show_bug.cgi?id=79
</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>