<?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>694</bug_id>
          
          <creation_ts>2013-02-24 17:23:08 +0100</creation_ts>
          <short_desc>BufferUnderflowException in gluScaleImage</short_desc>
          <delta_ts>2013-03-09 03:44:52 +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>INVALID</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>0</everconfirmed>
          <reporter name="Julien Gouesse">gouessej</reporter>
          <assigned_to name="Sven Gothel">sgothel</assigned_to>
          
          
          <cf_type>---</cf_type>
          <cf_scm_refs>b29f221c903aefdf99af8e8a8544b2223036454f</cf_scm_refs>
          <cf_workaround>---</cf_workaround>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2225</commentid>
    <comment_count>0</comment_count>
    <who name="Julien Gouesse">gouessej</who>
    <bug_when>2013-02-24 17:23:08 +0100</bug_when>
    <thetext>GLUgl2.gluScaleImage(GL.GL_LUMINANCE,213,213,GL.GL_UNSIGNED_BYTE,inBuf, 256,256,GL.GL_UNSIGNED_BYTE,outBuf) throws an exception (inBuf has a capacity of 45369 bytes and outBuf has a capacity of 66560 bytes) when using the default Java implementation of GLU.

My graphics card is an ATI Radeon 9250 Pro, I&apos;m under Mageia Linux 2. I use OpenJDK 1.7 update 6.

Display Vendor: Tungsten Graphics, Inc.
Display Renderer: Mesa DRI R200 (RV280 5C61) x86/MMX+/3DNow!+/SSE TCL DRI2
Display Version: 1.3 Mesa 8.0.4

I&apos;ll commit a unit test very soon.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2226</commentid>
    <comment_count>1</comment_count>
    <who name="Julien Gouesse">gouessej</who>
    <bug_when>2013-02-24 17:29:19 +0100</bug_when>
    <thetext>The unit test is this pull request:
https://github.com/sgothel/jogl/pull/59</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2251</commentid>
    <comment_count>2</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2013-03-09 03:44:52 +0100</bug_when>
    <thetext>http://jogamp.org/git/?p=jogl.git;a=commit;h=b29f221c903aefdf99af8e8a8544b2223036454f

The unpack alignment has to be considered, see fixed unit test.

Wade&apos;s test you used as a boiler plate worked, since he used a multiple of 4,
which is the default unpack alignment.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>