<?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>1087</bug_id>
          
          <creation_ts>2014-10-04 04:48:10 +0200</creation_ts>
          <short_desc>OSX 10.9.5 - default framebuffer write causes GL_INVALID_FRAMEBUFFER_OPERATION on dummy drawable</short_desc>
          <delta_ts>2019-03-29 17:54:45 +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>macosx</component>
          <version>2.3.0</version>
          <rep_platform>pc_x86_64</rep_platform>
          <op_sys>macosx</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>major</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>1fcfd014ca90125ab53ebc4e96e133535a55f095</cf_scm_refs>
          <cf_workaround>---</cf_workaround>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>4342</commentid>
    <comment_count>0</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2014-10-04 04:48:10 +0200</bug_when>
    <thetext>Test case 
  TestSharedContextVBOES2NEWT1.test03EachWithAnimatorSharedOffscreen()
and similar start failing on OSX after update to 10.9.5 (?).

Test case uses a shared master context on a dummy onscreen drawable
created via factory.createDummy[Auto]Drawable(..).

The GLEventListener issues 
  glClear(GL.GL_COLOR_BUFFER_BIT | GL.GL_DEPTH_BUFFER_BIT)
and the OpenGL driver set the error state to 
  GL_INVALID_FRAMEBUFFER_OPERATION

+++

This happens with the Nvidia driver (discrete)
as well as with the Intel driver (integrated).

This happens on a Mac-Mini (Nvidia)
as well as on a Macbook pro (Intel+Nvidia).

+++

We have to investigate, 
whether the dummy onscreen drawable&apos;s invisible surface 
is no more suitable, or we have a other issues.

This could as well be a driver bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4343</commentid>
    <comment_count>1</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2014-10-04 04:49:29 +0200</bug_when>
    <thetext>(In reply to comment #0)
&gt; 
&gt; This could as well be a driver bug.

i.e. an OpenGL bug of Apple&apos;s generic 
OpenGL layer - utilizing the lower level vendor implementation.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4344</commentid>
    <comment_count>2</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2014-10-04 05:04:53 +0200</bug_when>
    <thetext>Turns out not only glClear(..) causes this issue,
but also glDrawArrays(..).

In short, all target renderbuffer write commands seems to fail!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4346</commentid>
    <comment_count>3</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2014-10-04 05:19:04 +0200</bug_when>
    <thetext>If skipping display in the shared master GearsES2 altogether, 
no gl-error appears and the test is working.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4347</commentid>
    <comment_count>4</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2014-10-05 04:26:24 +0200</bug_when>
    <thetext>After triaging, issue turns out to write into the default framebuffer,
i.e. onscreen NSView, while not having created the NSWindow/NSView (deferred)
and not having associated the NSView w/ NSOpenGLContext.

Hence we may describe the new issue w/ 10.9.5 as:
  GL_INVALID_FRAMEBUFFER_OPERATION and crash writing to default framebuffer
  w/o associating a realized NSView to NSOpenGLContext.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4356</commentid>
    <comment_count>5</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2014-10-08 08:26:32 +0200</bug_when>
    <thetext>1fcfd014ca90125ab53ebc4e96e133535a55f095

Set default framebuffer for OSX DummyDrawable, 
hence enforce NSView realization for DummyDrawable.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>