<?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>1441</bug_id>
          
          <creation_ts>2023-08-06 21:25:25 +0200</creation_ts>
          <short_desc>Fix ARB_multi_draw_indirect (GL4)</short_desc>
          <delta_ts>2023-08-07 22:55:31 +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>opengl</component>
          <version>2.5.0</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>P4</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>852</dependson>
    
    <dependson>974</dependson>
          
          <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>af321b4a90a4da9351dfbdd6d9a8202a73fc8c05
bcc4b5de41dcfca5eac19111506b996d3531d908</cf_scm_refs>
          <cf_workaround>---</cf_workaround>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>6817</commentid>
    <comment_count>0</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2023-08-06 21:25:25 +0200</bug_when>
    <thetext>See Bug 974 and
- https://registry.khronos.org/OpenGL/extensions/ARB/ARB_multi_draw_indirect.txt
- https://www.khronos.org/opengl/wiki/GLAPI/glMultiDrawArraysIndirect
- https://www.khronos.org/opengl/wiki/GLAPI/glMultiDrawElementsIndirect

Extension requires GL4, subsumed in GL 4.3

glMultiDrawArraysIndirect() is dual mode, buffer address if VBO GL_DRAW_INDIRECT_BUFFER is unbound, otherwise byte offset. See Bug 974.

glMultiDrawElementsIndirect() is only VBO GL_DRAW_INDIRECT_BUFFER indirect.
It also required VBO buffer GL_ELEMENT_ARRAY_BUFFER to be bound (uncheck in JOGL).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6818</commentid>
    <comment_count>1</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2023-08-06 21:26:45 +0200</bug_when>
    <thetext>resolved with commit af321b4a90a4da9351dfbdd6d9a8202a73fc8c05</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6819</commentid>
    <comment_count>2</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2023-08-06 21:41:58 +0200</bug_when>
    <thetext>Also see discussion regarding CPU (client memory) and GPU (VBO) sourced buffers in Bug 852.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>