зеркало из https://github.com/AvaloniaUI/angle.git
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:
Родитель
f7cbca80e0
Коммит
bcd3ae6165
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче