Fix some instances of -Wshadow.

Bug: chromium:794619
Change-Id: I5efe04e64800455585438467bcf6c262e91f398d
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3229095
Commit-Queue: Peter Kasting <pkasting@chromium.org>
Commit-Queue: Shahbaz Youssefi <syoussefi@chromium.org>
Reviewed-by: Jamie Madill <jmadill@chromium.org>
This commit is contained in:
Peter Kasting 2021-10-18 09:36:49 -07:00 коммит произвёл Angle LUCI CQ
Родитель f7cbca80e0
Коммит bcd3ae6165
2 изменённых файлов: 8 добавлений и 8 удалений

Просмотреть файл

@ -4814,11 +4814,11 @@ void main()
{
gl_FragColor = v_attrib;
})";
GLuint program = CompileProgram(kVS, kFS);
ASSERT_NE(program, 0U);
GLint attribLocation = glGetAttribLocation(program, "in_attrib");
GLuint readProgram = CompileProgram(kVS, kFS);
ASSERT_NE(readProgram, 0U);
GLint attribLocation = glGetAttribLocation(readProgram, "in_attrib");
ASSERT_NE(attribLocation, -1);
glUseProgram(program);
glUseProgram(readProgram);
ASSERT_GL_NO_ERROR();
glMemoryBarrier(GL_VERTEX_ATTRIB_ARRAY_BARRIER_BIT | GL_ELEMENT_ARRAY_BARRIER_BIT);
glBindBuffer(GL_ARRAY_BUFFER, textureBufferStorage);

Просмотреть файл

@ -380,11 +380,11 @@ TEST_P(ShaderStorageBufferTest31, ShaderStorageBufferReadWriteAndBufferSubData)
{
gl_FragColor = v_attrib;
})";
GLuint program = CompileProgram(kVS, kFS);
ASSERT_NE(program, 0U);
GLint attribLocation = glGetAttribLocation(program, "in_attrib");
GLuint readProgram = CompileProgram(kVS, kFS);
ASSERT_NE(readProgram, 0U);
GLint attribLocation = glGetAttribLocation(readProgram, "in_attrib");
ASSERT_NE(attribLocation, -1);
glUseProgram(program);
glUseProgram(readProgram);
ASSERT_GL_NO_ERROR();
glMemoryBarrier(GL_VERTEX_ATTRIB_ARRAY_BARRIER_BIT | GL_ELEMENT_ARRAY_BARRIER_BIT);
glBindBuffer(GL_ARRAY_BUFFER, shaderStorageBuffer);