Commit ed1e0ad9 by Geoff Lang

Fix typo when syncing GL_UNPACK_SKIP_ROWS and GL_PACK_SKIP_ROWS.

Causes crashes in the dEQP ReadPixels test. BUG=angleproject:1149 BUG=angleproject:883 Change-Id: I090e21ebd7781ce3372b8842421e7da3e4bedbac Reviewed-on: https://chromium-review.googlesource.com/287629Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Reviewed-by: 's avatarCorentin Wallez <cwallez@chromium.org> Tested-by: 's avatarGeoff Lang <geofflang@chromium.org>
parent da34d002
...@@ -291,7 +291,7 @@ void StateManagerGL::setPixelUnpackState(GLint alignment, ...@@ -291,7 +291,7 @@ void StateManagerGL::setPixelUnpackState(GLint alignment,
if (mUnpackSkipRows != skipRows) if (mUnpackSkipRows != skipRows)
{ {
mUnpackSkipRows = rowLength; mUnpackSkipRows = skipRows;
mFunctions->pixelStorei(GL_UNPACK_SKIP_ROWS, mUnpackSkipRows); mFunctions->pixelStorei(GL_UNPACK_SKIP_ROWS, mUnpackSkipRows);
// TODO: set dirty bit once one exists // TODO: set dirty bit once one exists
...@@ -359,7 +359,7 @@ void StateManagerGL::setPixelPackState(GLint alignment, ...@@ -359,7 +359,7 @@ void StateManagerGL::setPixelPackState(GLint alignment,
if (mPackSkipRows != skipRows) if (mPackSkipRows != skipRows)
{ {
mPackSkipRows = rowLength; mPackSkipRows = skipRows;
mFunctions->pixelStorei(GL_PACK_SKIP_ROWS, mPackSkipRows); mFunctions->pixelStorei(GL_PACK_SKIP_ROWS, mPackSkipRows);
// TODO: set dirty bit once one exists // TODO: set dirty bit once one exists
......
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