<?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>984</bug_id>
          
          <creation_ts>2014-02-25 13:52:38 +0100</creation_ts>
          <short_desc>GLBufferObjectTracker.mapBuffer() calls mapBufferImpl() with incorrect parameters</short_desc>
          <delta_ts>2014-02-26 16:58:03 +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>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>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="PJDM">pjd.mayne+jogl</reporter>
          <assigned_to name="Sven Gothel">sgothel</assigned_to>
          
          
          <cf_type>---</cf_type>
          <cf_scm_refs>72d44215a266ccb569efbd5af3142385c4442fe9</cf_scm_refs>
          <cf_workaround>---</cf_workaround>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>3794</commentid>
    <comment_count>0</comment_count>
    <who name="PJDM">pjd.mayne+jogl</who>
    <bug_when>2014-02-25 13:52:38 +0100</bug_when>
    <thetext>JOGL v2.1.4

At jogamp.opengl.GLBufferObjectTracker.mapBuffer(GLBufferObjectTracker.java:301)

    public synchronized final GLBufferStorage mapBuffer(final GLBufferStateTracker bufferStateTracker,
                                                        final GL caller, final int target, final long offset, final long length, final int access,
                                                        final MapBufferRangeDispatch dispatch, final long glProcAddress) throws GLException {
        return this.mapBufferImpl(bufferStateTracker, caller, target, true /* useRange */, length, access, access, dispatch, glProcAddress);
    }

The parameters in the call to this.mapBufferImpl()
    ..., length, access, access, ...
should be
    ..., offset, length, access, ...

This causes GL.glMapBufferRange() to fail.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3805</commentid>
    <comment_count>1</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2014-02-26 16:55:02 +0100</bug_when>
    <thetext>Thank you PJDM!

72d44215a266ccb569efbd5af3142385c4442fe9    
    GLBufferObjectTracker.mapBuffer(..) variant for mapBufferRange(..) and mapNamedBufferRange(..)
    used wrong parameters in it&apos;s mapBufferImpl(..) call.
    
    Fixed and added mapBufferRange(..) test in TestMapBufferRead01NEWT</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3806</commentid>
    <comment_count>2</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2014-02-26 16:58:03 +0100</bug_when>
    <thetext>Annotation: Quite a sloppy typo / copy-paste bug ..</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>