<?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>1287</bug_id>
          
          <creation_ts>2016-02-02 14:42:31 +0100</creation_ts>
          <short_desc>Complete immutable glNamedBufferStorage support in GLBufferObjectTracker</short_desc>
          <delta_ts>2019-12-29 00:38:51 +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>opengl</component>
          <version>2.4.0</version>
          <rep_platform>pc_x86_64</rep_platform>
          <op_sys>windows</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P4</priority>
          <bug_severity>critical</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>942</dependson>
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Giuseppe Barbieri">elect86</reporter>
          <assigned_to name="Giuseppe Barbieri">elect86</assigned_to>
          <cc>gouessej</cc>
    
    <cc>sgothel</cc>
          
          <cf_type>DEFECT</cf_type>
          <cf_scm_refs>50f9c9e113b09ab54ba40abba6b2face27c9a139</cf_scm_refs>
          <cf_workaround>---</cf_workaround>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>5525</commentid>
    <comment_count>0</comment_count>
    <who name="Giuseppe Barbieri">elect86</who>
    <bug_when>2016-02-02 14:42:31 +0100</bug_when>
    <thetext>gl4.glNamedBufferStorage(bufferName[Buffer.ELEMENT], elementSize, elementBuffer, 0);

fires

Caused by: java.lang.InternalError: Immutable glNamedBufferStorage not supported yet
	at jogamp.opengl.GLBufferObjectTracker.createBufferStorage(GLBufferObjectTracker.java:219)
	at jogamp.opengl.gl4.GL4bcImpl.glNamedBufferStorage(GL4bcImpl.java:40826)
	at tests.gl_450.Gl_450_direct_state_access.initBuffer(Gl_450_direct_state_access.java:220)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>5534</commentid>
    <comment_count>1</comment_count>
    <who name="Julien Gouesse">gouessej</who>
    <bug_when>2016-02-16 20:05:23 +0100</bug_when>
    <thetext>Why is it a blocker??</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>5536</commentid>
    <comment_count>2</comment_count>
    <who name="Giuseppe Barbieri">elect86</who>
    <bug_when>2016-02-16 21:20:28 +0100</bug_when>
    <thetext>I can&apos;t use DSA and immutable storage.. but probably you are right, I switch it to critical</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6480</commentid>
    <comment_count>3</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2019-12-27 03:52:50 +0100</bug_when>
    <thetext>As of the time of implementation, named immutable buffers were not fully supported within GL 4.4. 
This has changed, i.e. GL 4.5 supports glNamedBufferStorage.

jogl 50f9c9e113b09ab54ba40abba6b2face27c9a139
adds support for the immutable named buffer storage case.

Bug 942 comment 7, 
reflecting jogl commit 09fc7aa5539731bb0fba835caee61f6eb837ecff,
added GLBufferObjectTracker allowing to keep required references to NIO object.
This tracker complements the NIO buffer lifecycle with the GL semantics.

In case this change doesn&apos;t work as intended,
please create a new bug entry linked to this bug via &apos;depends on&apos;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6484</commentid>
    <comment_count>4</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2019-12-29 00:38:51 +0100</bug_when>
    <thetext>comment 3 sets the state to resolved/fixed</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>