Commit 3688cb36 by Manh Nguyen Committed by Commit Bot

Fix bugs in angle_end2end_tests and frame capture

1. CaptureGetShaderInfoLog_infoLog method should not require shader object to be compiled 2. glCompressedTexImage3D's parameter locations are off by 1 3. EGLContextSharingTest.DisplayShareGroupObjectSharing test should not delete buffers it has no access to since it will crash when running capture replay Bug: angleproject:4801 Change-Id: I0d407cdb44eb41eea4209eebab0996d3dd8ae5f5 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2272862 Commit-Queue: Manh Nguyen <nguyenmh@google.com> Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Reviewed-by: 's avatarCody Northrop <cnorthrop@google.com>
parent 9b8ee0ff
......@@ -3285,10 +3285,10 @@ void FrameCapture::captureCompressedTextureData(const gl::Context *context, cons
dataParamOffset = 10;
break;
case gl::EntryPoint::CompressedTexImage3D:
widthParamOffset = 4;
heightParamOffset = 5;
depthParamOffset = 6;
dataParamOffset = 9;
widthParamOffset = 3;
heightParamOffset = 4;
depthParamOffset = 5;
dataParamOffset = 8;
break;
case gl::EntryPoint::CompressedTexSubImage2D:
xoffsetParamOffset = 2;
......
......@@ -446,7 +446,7 @@ void CaptureGetShaderInfoLog_infoLog(const State &glState,
ParamCapture *paramCapture)
{
gl::Shader *shaderObj = glState.getShaderProgramManagerForCapture().getShader(shader);
ASSERT(shaderObj && shaderObj->isCompiled());
ASSERT(shaderObj);
paramCapture->readBufferSizeBytes = shaderObj->getInfoLogLength() + 1;
}
......
......@@ -175,7 +175,6 @@ TEST_P(EGLContextSharingTest, DisplayShareGroupObjectSharing)
ASSERT_GL_TRUE(glIsTexture(textureFromCtx0));
ASSERT_GL_FALSE(glIsBuffer(bufferFromCtx0));
glDeleteBuffers(1, &bufferFromCtx0);
ASSERT_GL_NO_ERROR();
// Call readpixels on the texture to verify that the backend has proper support
......
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