From: Paolo Farinelli (paolo++at++sgi.com)
Date: 01/23/2003 17:25:19
Hi Dimi,
You should be able to call glPixelStorei(GL_UNPACK_ALIGNMENT,1)
directly, just before subloading into your texture.
This should work regardless of whether you're subloading using openGL
calls (eg: glCopyTexSubImage2D) or Performer calls (eg:
pfTexture::subload),
as long as you do so from a DRAW process.
It probably is a good idea to restore the original value (should be 4),
after
you are done subloading.
Hope this helps,
Paolo
Dimi wrote:
>Hi,
>is there a way in Performer (to do a
>glPixelStorei (GL_UNPACK_ALIGNMENT, 1);
>
>I need to subload textures which are not byte padded to a 4 word boundary as its probably preset by OpenGL.
>I noticed that if the texture dimensions is not aligned to 4 the subloading does not work right.
>In opengl the above command is used to avoid this.
>
>Thanks in advance
>Dimi
>
>-----------------------------------------------------------------------
> List Archives, Info, FAQ: http://www.sgi.com/software/performer/
> Open Development Project: http://oss.sgi.com/projects/performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com
>-----------------------------------------------------------------------
>
-- Paolo Farinelli paolo++at++sgi.com Member of Technical Staff, OpenGL Performer 1-650-933-1808 Silicon Graphics 1600 Amphitheatre Pkwy, Mountain View, CA 94043
This archive was generated by hypermail 2b29 : Thu Jan 23 2003 - 17:25:24 PST