<?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>1288</bug_id>
          
          <creation_ts>2016-02-03 15:32:21 +0100</creation_ts>
          <short_desc>GL_PARAMETER_BUFFER_ARB is perceived as invalid binding target</short_desc>
          <delta_ts>2019-03-26 23:55:19 +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>blocker</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Giuseppe Barbieri">elect86</reporter>
          <assigned_to name="Sven Gothel">sgothel</assigned_to>
          
          
          <cf_type>FEATURE</cf_type>
          <cf_scm_refs>jogl ddf2640e5088c105352b032bea076c569685c99a</cf_scm_refs>
          <cf_workaround>---</cf_workaround>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>5526</commentid>
    <comment_count>0</comment_count>
    <who name="Giuseppe Barbieri">elect86</who>
    <bug_when>2016-02-03 15:32:21 +0100</bug_when>
    <thetext>This binding:

gl4.glBindBuffer(GL_PARAMETER_BUFFER_ARB, bufferName[Buffer.PARAMETER]);

Fires the following exception:

Caused by: com.jogamp.opengl.GLException: GL_INVALID_ENUM​: Invalid binding target 0x80EE
	at jogamp.opengl.GLBufferStateTracker.checkTargetName(GLBufferStateTracker.java:174)
	at jogamp.opengl.GLBufferStateTracker.setBoundBufferObject(GLBufferStateTracker.java:189)
	at jogamp.opengl.gl4.GL4bcImpl.glBindBuffer(GL4bcImpl.java:10213)
	at tests.gl_500.Gl_500_multi_draw_indirect_count_arb.initBuffer(Gl_500_multi_draw_indirect_count_arb.java:300)



GL_PARAMETER_BUFFER_ARB is a legal buffer binding</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>5565</commentid>
    <comment_count>1</comment_count>
    <who name="Giuseppe Barbieri">elect86</who>
    <bug_when>2016-03-11 19:11:33 +0100</bug_when>
    <thetext>Actually the fix is pretty easy :p

https://github.com/sgothel/jogl/pull/98</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6103</commentid>
    <comment_count>2</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2019-03-26 23:55:19 +0100</bug_when>
    <thetext>GLBufferStateTracker needs to support ARB_indirect_parameters, 
i.e. checkTargetName(target) and getQueryName(target) 
need to recognize GL4.GL_PARAMETER_BUFFER_ARB.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>