Commit ed573c25 by Geoff Lang

Fixed a bug where the parameters to gl::GetDepthPitch were passed in the wrong order.

TRAC #23669 Signed-off-by: Nicolas Capens Signed-off-by: Shannon Woods Author: Geoff Lang
parent fdf06948
...@@ -2238,7 +2238,7 @@ void Texture2DArray::subImage(GLint level, GLint xoffset, GLint yoffset, GLint z ...@@ -2238,7 +2238,7 @@ void Texture2DArray::subImage(GLint level, GLint xoffset, GLint yoffset, GLint z
{ {
GLint internalformat = getInternalFormat(level); GLint internalformat = getInternalFormat(level);
GLuint clientVersion = mRenderer->getCurrentClientVersion(); GLuint clientVersion = mRenderer->getCurrentClientVersion();
GLsizei inputDepthPitch = gl::GetDepthPitch(internalformat, type, width, height, clientVersion, unpackAlignment); GLsizei inputDepthPitch = gl::GetDepthPitch(internalformat, type, clientVersion, width, height, unpackAlignment);
for (int i = 0; i < depth; i++) for (int i = 0; i < depth; i++)
{ {
......
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