aboutsummaryrefslogtreecommitdiffstats
path: root/src/glslprogram.cpp
diff options
context:
space:
mode:
authorYann Herklotz <ymherklotz@gmail.com>2017-08-23 20:33:34 +0100
committerYann Herklotz <ymherklotz@gmail.com>2017-08-23 20:33:34 +0100
commit56b5466f014d9f7c3662544713bd53670cd8e32f (patch)
tree479658b1424c53d3e1ceaadb16b095bb34531520 /src/glslprogram.cpp
parent34f910351863163438c419dd07045f1442321293 (diff)
downloadYAGE-56b5466f014d9f7c3662544713bd53670cd8e32f.tar.gz
YAGE-56b5466f014d9f7c3662544713bd53670cd8e32f.zip
Applied modernize rules and fixed build.
Applied clang-tidy modernize rules and fixed the CMakeLists.txt file so that it also linked against the SDL2 library.
Diffstat (limited to 'src/glslprogram.cpp')
-rw-r--r--src/glslprogram.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glslprogram.cpp b/src/glslprogram.cpp
index a5f95ad5..6d0a60b2 100644
--- a/src/glslprogram.cpp
+++ b/src/glslprogram.cpp
@@ -38,7 +38,7 @@ void GlslProgram::compileShader(const GLuint& shader,
// cast source to a c string to get the address of it and input it for
// compilation
- const GLchar* vertex_source = (const GLchar*)content.c_str();
+ const auto* vertex_source = (const GLchar*)content.c_str();
glShaderSource(shader, 1, &vertex_source, nullptr);
glCompileShader(shader);