Commit 666e2866 by Jamie Madill

Ensure the 'slice' pixel unpack/pack alignment is only aligned based on the row stride.

TRAC #23837 Signed-off-by: Geoff Lang Signed-off-by: Shannon Woods
parent 384b6041
......@@ -1478,7 +1478,7 @@ GLuint GetRowPitch(GLint internalFormat, GLenum type, GLuint clientVersion, GLsi
GLuint GetDepthPitch(GLint internalFormat, GLenum type, GLuint clientVersion, GLsizei width, GLsizei height, GLint alignment)
{
return (GetBlockSize(internalFormat, type, clientVersion, width, height) + alignment - 1) & ~(alignment - 1);
return GetRowPitch(internalFormat, type, clientVersion, width, alignment) * height;
}
GLuint GetBlockSize(GLint internalFormat, GLenum type, GLuint clientVersion, GLsizei width, GLsizei height)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment