<?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>464</bug_id>
          
          <creation_ts>2011-01-25 16:16:50 +0100</creation_ts>
          <short_desc>TextRenderer setUseVertexArrays not working as intended</short_desc>
          <delta_ts>2011-02-01 05:44: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>awt</component>
          <version>2</version>
          <rep_platform>All</rep_platform>
          <op_sys>all</op_sys>
          <bug_status>VERIFIED</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="John No">shocktrooper</reporter>
          <assigned_to name="Sven Gothel">sgothel</assigned_to>
          <cc>wwalker3</cc>
          
          <cf_type>---</cf_type>
          <cf_scm_refs>e894ead4feb75efc0246da0d5b8d3005342c6c1c
2be6672f08e0217f886256ffca1f2b4152f164cc</cf_scm_refs>
          <cf_workaround>---</cf_workaround>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>792</commentid>
    <comment_count>0</comment_count>
    <who name="John No">shocktrooper</who>
    <bug_when>2011-01-25 16:16:50 +0100</bug_when>
    <thetext>Due to a driver problem on my system the glBindBuffer() method causes my JVM to crash with:

Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  [atioglxx.dll+0x26a876]
j  com.jogamp.opengl.impl.gl4.GL4bcImpl.dispatch_glGenBuffers1(ILjava/lang/Object;IZJ)V+0
j  com.jogamp.opengl.impl.gl4.GL4bcImpl.glGenBuffers(ILjava/nio/IntBuffer;)V+87
j  com.jogamp.opengl.util.awt.TextRenderer$Pipelined_QuadRenderer.&lt;init&gt;(Lcom/jogamp/opengl/util/awt/TextRenderer;)V+69
j  com.jogamp.opengl.util.awt.TextRenderer$Glyph.draw3D(FFFF)F+128
j  com.jogamp.opengl.util.awt.TextRenderer.internal_draw3D(Ljava/lang/CharSequence;FFFF)V+49
j  com.jogamp.opengl.util.awt.TextRenderer.draw3D(Ljava/lang/String;FFFF)V+8
j  com.jogamp.opengl.util.awt.TextRenderer.draw(Ljava/lang/String;II)V+8 

Setting the useVertexArrays variable to false forces the TextRenderer to use immediate mode for drawing, but some methods still call gl.glBindBuffer causing jvm crashes. These methods use the is15Available method to check for VBO capability and are completely ignoring the useVertexArrays variable.

Fix:
Changing the return statement of is15Available to &quot;return isExtensionAvailable_GL_VERSION_1_5 &amp;&amp; useVertexArrays;&quot;.

Forum-discussion:
http://jogamp.762907.n3.nabble.com/Problems-with-update-to-b266-tp2280749p2280749.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>793</commentid>
    <comment_count>1</comment_count>
    <who name="Wade Walker">wwalker3</who>
    <bug_when>2011-01-25 17:40:07 +0100</bug_when>
    <thetext>Hi John,

Were you going to submit a patch for this, or did you want me to? Let me know if you need help writing the unit test.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>796</commentid>
    <comment_count>2</comment_count>
    <who name="John No">shocktrooper</who>
    <bug_when>2011-01-25 19:45:32 +0100</bug_when>
    <thetext>Well the patch is a oneliner and i already set up git and ant to build jogl myself, so i&apos;ll try to get the unit test done as well...
guess if i get stuck somewhere i know where to ask :&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>804</commentid>
    <comment_count>3</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2011-02-01 05:44:45 +0100</bug_when>
    <thetext>e894ead4feb75efc0246da0d5b8d3005342c6c1c
2be6672f08e0217f886256ffca1f2b4152f164cc


manual merged (CR/LF) ..
Thank you John!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>