<?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>235</bug_id>
          
          <creation_ts>2006-07-09 09:32:03 +0200</creation_ts>
          <short_desc>VBO with GL glVertexPointer with a null array</short_desc>
          <delta_ts>2010-03-24 07:49:19 +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>all</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>WONTFIX</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>251</commentid>
    <comment_count>0</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2010-03-24 07:49:19 +0100</bug_when>
    <thetext>


---- Reported by aaronanderson 2006-07-09 21:32:03 ----

On the JOGL GL interface there are two glVertexPointer method signatures:

void glVertexPointer(int size, int type, int stride, Buffer ptr) 
void glVertexPointer(int size, int type, int stride, long ptr_buffer_offset) 

If I issue a glBindBufferARB() right before a call to  
glVertexPointer( 3, GL.GL_DOUBLE, 0, (Buffer)null );

I get an exception:
Exception in thread &quot;Thread-2&quot; javax.media.opengl.GLException: 
javax.media.opengl.GLException: array vertex_buffer_object must be disabled to 
call this method
        at javax.media.opengl.Threading.invokeOnOpenGLThread(Threading.java:271)
        at javax.media.opengl.GLCanvas.maybeDoSingleThreadedWorkaround
(GLCanvas.java:256)
        at javax.media.opengl.GLCanvas.display(GLCanvas.java:130)
        at com.sun.opengl.util.Animator.display(Animator.java:144)
        at com.sun.opengl.util.Animator$MainLoop.run(Animator.java:181)
        at java.lang.Thread.run(Thread.java:619)


However if I change the call to 
glVertexPointer( 3, GL.GL_DOUBLE, 0, 0 );

I don&apos;t get an exception and I get the desired results. I believe both calls 
are equivalent and should be treated the same.



---- Additional Comments From kbr 2006-07-09 23:50:47 ----

These overloaded routines are left distinct because of type safety and security
issues. While it is in theory possible to overload the meaning of the version
taking a Buffer in the manner described, we are not going to make this change at
this time.




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

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

    </bug>

</bugzilla>