<?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>94</bug_id>
          
          <creation_ts>2004-06-27 06:09:55 +0200</creation_ts>
          <short_desc>isFunctionAvailable throws exception on valid version strings</short_desc>
          <delta_ts>2010-03-24 07:46:43 +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>windows</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</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>110</commentid>
    <comment_count>0</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2010-03-24 07:46:43 +0100</bug_when>
    <thetext>


---- Reported by jamcdonald 2004-06-27 18:09:56 ----

gl.isFunctionAvailable(&quot;glMinmax&quot;) throws an exception, when it should
return &lt;false&gt;. 

This appears to be due to an error in version parsing in the constructor:
net.java.games.jogl.impl.FunctionAvailabilityCache.Version (String)
which seems to expect version strings like &quot;GL_VERSION_1_4&quot;.

&quot;1.4.4145 WinXP Release&quot; is a valid OpenGL version string,
according to the 1.5 spec. 

java.lang.IllegalArgumentException: Illegally formatted OpenGL version
identifier: &quot;1.4.4145 WinXP Release&quot;
  at
net.java.games.jogl.impl.FunctionAvailabilityCache.isPartOfGLCore(FunctionAvailabilityCache.java:196)
  at
net.java.games.jogl.impl.FunctionAvailabilityCache.isFunctionAvailable(FunctionAvailabilityCache.java:82)
  at net.java.games.jogl.impl.GLContext.isFunctionAvailable(GLContext.java:413)
  at
net.java.games.jogl.impl.windows.WindowsGLContext.isFunctionAvailable(WindowsGLContext.java:223)
  at
net.java.games.jogl.impl.windows.WindowsGLImpl.isFunctionAvailable(WindowsGLImpl.java:33892)
  at test.red.Minmax.init(Minmax.java:64)
  at net.java.games.jogl.impl.GLDrawableHelper.init(GLDrawableHelper.java:68)
  at net.java.games.jogl.GLCanvas$InitAction.run(GLCanvas.java:191)
  at
net.java.games.jogl.impl.windows.WindowsGLContext.makeCurrent(WindowsGLContext.java:160)
  at
net.java.games.jogl.impl.windows.WindowsOnscreenGLContext.makeCurrent(WindowsOnscreenGLContext.java:110)
  at net.java.games.jogl.impl.GLContext.invokeGL(GLContext.java:203)
  at net.java.games.jogl.GLCanvas.reshape(GLCanvas.java:97)
  at java.awt.Component.setBounds(Component.java:1664)
  at java.awt.BorderLayout.layoutContainer(BorderLayout.java:691)
  at java.awt.Container.layout(Container.java:1020)
  at java.awt.Container.doLayout(Container.java:1010)
  at java.awt.Container.validateTree(Container.java:1092)
  at java.awt.Container.validate(Container.java:1067)
  at java.awt.Window.pack(Window.java:444)
  at red.AFrame.&lt;init&gt;(AFrame.java:74)
  at test.red.Test.&lt;init&gt;(Test.java:253)
  at test.red.Minmax.&lt;init&gt;(Minmax.java:164)
  at test.red.Minmax.main(Minmax.java:186)



---- Additional Comments From kbr 2005-05-26 15:35:19 ----

I apologize for taking so long to fix this bug. You are correct; this is a
longstanding bug in JOGL&apos;s understanding of the association of core OpenGL
routines. The code needed to be adapted to handle both the GL_VERSION_X_Y format
coming out of the BuildStaticGLInfo class as well as the X.Y format coming out
of glGetString(GL_VERSION).




---- Additional Comments From kbr 2006-03-17 14:07:39 ----

*** Issue 209 has been marked as a duplicate of this issue. ***



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

This bug was previously known as _bug_ 94 at https://jogl.dev.java.net/bugs/show_bug.cgi?id=94

Unknown bug field &quot;has_duplicates&quot; encountered while moving bug
   &lt;has_duplicates&gt;
     &lt;bug_id&gt;209&lt;/bug_id&gt;
     &lt;who&gt;kbr&lt;/who&gt;
     &lt;when&gt;2006-03-17 14:07:39&lt;/when&gt;
&lt;/has_duplicates&gt;

</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>