Skip to content

Commit 0b94c24

Browse files
Small performance cleanup.
PiperOrigin-RevId: 304690776
1 parent 2ce21d0 commit 0b94c24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tensorflow_graphics/rendering/opengl/gl_program.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ tensorflow::Status Program::Create(
7676

7777
// Compile and attach the input shaders to the program.
7878
std::vector<Cleanup<std::function<void()>>> shader_cleanups;
79-
for (auto shader : shaders) {
79+
for (const auto& shader : shaders) {
8080
GLuint shader_idx;
8181
TF_RETURN_IF_ERROR(CompileShader(shader.first, shader.second, &shader_idx));
8282
std::function<void()> compile_cleanup = [shader_idx]() {

0 commit comments

Comments
 (0)