Bug 1234 - GLReadBufferUtil.readPixelsImpl(..) not using [xy] offset in readTexture.updateSubImage(..)
Summary: GLReadBufferUtil.readPixelsImpl(..) not using [xy] offset in readTexture.upda...
Status: RESOLVED FIXED
Alias: None
Product: Jogl
Classification: JogAmp
Component: util (show other bugs)
Version: 2.3.2
Hardware: All all
: --- major
Assignee: Sven Gothel
URL:
Depends on:
Blocks:
 
Reported: 2015-09-28 06:52 CEST by Sven Gothel
Modified: 2015-09-28 06:54 CEST (History)
0 users

See Also:
Type: DEFECT
SCM Refs:
3d94fac862c3605d3a0862e8e6f7725483398163
Workaround: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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