Bug 1234

Summary: GLReadBufferUtil.readPixelsImpl(..) not using [xy] offset in readTexture.updateSubImage(..)
Product: [JogAmp] Jogl Reporter: Sven Gothel <sgothel>
Component: utilAssignee: Sven Gothel <sgothel>
Status: RESOLVED FIXED    
Severity: major    
Priority: ---    
Version: 2.3.2   
Hardware: All   
OS: all   
Type: DEFECT SCM Refs:
3d94fac862c3605d3a0862e8e6f7725483398163
Workaround: ---

Description Sven Gothel 2015-09-28 06:52:58 CEST
The passed inX and inY x/y offset for readPixel -> [textureData] buffer,
must be passed to readTexture.updateSubImage(..)'s destination offset.

I.e. the buffer's content starting at beginning is filled via glReadPixels
w/ offset applied.

Hence the texture update must pass the offset as the destination offset,
i.e. to be used for glTexSubImage2D's offset.

Currently zero is passed.
Comment 1 Sven Gothel 2015-09-28 06:54:00 CEST
commit 3d94fac862c3605d3a0862e8e6f7725483398163:

fixed as described