From 23cd2123f0f1b45588ea040a10aa6257ee437f47 Mon Sep 17 00:00:00 2001 From: Jiannanya Date: Fri, 29 Oct 2021 10:02:58 +0800 Subject: [PATCH] fix comments in mesh.h stream->string --- includes/learnopengl/mesh.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/learnopengl/mesh.h b/includes/learnopengl/mesh.h index 0256ee3..36943a3 100644 --- a/includes/learnopengl/mesh.h +++ b/includes/learnopengl/mesh.h @@ -73,11 +73,11 @@ public: if(name == "texture_diffuse") number = std::to_string(diffuseNr++); else if(name == "texture_specular") - number = std::to_string(specularNr++); // transfer unsigned int to stream + number = std::to_string(specularNr++); // transfer unsigned int to string else if(name == "texture_normal") - number = std::to_string(normalNr++); // transfer unsigned int to stream + number = std::to_string(normalNr++); // transfer unsigned int to string else if(name == "texture_height") - number = std::to_string(heightNr++); // transfer unsigned int to stream + number = std::to_string(heightNr++); // transfer unsigned int to string // now set the sampler to the correct texture unit glUniform1i(glGetUniformLocation(shader.ID, (name + number).c_str()), i);