<?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>763</bug_id>
          
          <creation_ts>2013-06-24 14:38:07 +0200</creation_ts>
          <short_desc>GL2GL3.glCreateShaderProgramv has bad signature and does not work</short_desc>
          <delta_ts>2013-07-05 05:52: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</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>---</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Julien">julien.carlos</reporter>
          <assigned_to name="Sven Gothel">sgothel</assigned_to>
          
          
          <cf_type>---</cf_type>
          <cf_scm_refs>jogl 4e225341fa11769c4da0825a3b5eb37464a732ef</cf_scm_refs>
          <cf_workaround>---</cf_workaround>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2709</commentid>
    <comment_count>0</comment_count>
    <who name="Julien">julien.carlos</who>
    <bug_when>2013-06-24 14:38:07 +0200</bug_when>
    <thetext>glCreateShaderProgramv has the following signature in C:
glCreateShaderProgramv (GLenum type, GLsizei count, const GLchar *const*strings);

It is very similar to the glShaderSource command:
glShaderSource (GLuint shader, GLsizei count, const GLchar *const*string, const GLint *length);


In Java glCreateShaderProgram takes the following arguments:
glCreateShaderProgramv(int type, int count, PointerBuffer strings)

-&gt; I can&apos;t find a way to pass the shader string as a PointBuffer. I get a GL4bcImpl implementation on a GLCanvas where I&apos;ve tried to use both an OpenGL 4 core and compatilibty contexts. I have a Quadro K3000M on Windows 7 64 bits, so it should work. I&apos;ve tried a lot of different things, most of them are crashing the application. 


glShaderSource has a much nicer Java interface:
glShaderSource(int shader, int count, String[] string, IntBuffer length)

-&gt; glCreateShaderProgram should really work the same way. So I would expect to have an interface like:
glCreateShaderProgram(int type, int count, String[] strings)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2715</commentid>
    <comment_count>1</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2013-06-25 18:28:26 +0200</bug_when>
    <thetext>agreed - thank you!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2781</commentid>
    <comment_count>2</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2013-07-05 05:52:24 +0200</bug_when>
    <thetext>fixed</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>