Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: grorp <gregor.parzefall@posteo.de>
  • Loading branch information
HybridDog and grorp committed Jan 15, 2024
1 parent f07be8a commit 3c0bda5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/client/shader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ ShaderInfo ShaderSource::generateShader(const std::string &name,
video::IVideoDriver *driver = RenderingEngine::get_video_driver();
if (!driver->queryFeature(video::EVDF_ARB_GLSL)) {
throw ShaderException("Shaders are enabled but GLSL is not supported "
"by the driver\n");
"by the driver");
}
video::IGPUProgrammingServices *gpu = driver->getGPUProgrammingServices();

Expand Down Expand Up @@ -791,7 +791,7 @@ ShaderInfo ShaderSource::generateShader(const std::string &name,
dumpShaderProgram(warningstream, "Fragment", fragment_shader);
dumpShaderProgram(warningstream, "Geometry", geometry_shader);
throw ShaderException("Failed to compile the \"" + name + "\" shader. "
"Check the log for details.");
"Check debug.txt for details.");
}

// Apply the newly created material type
Expand Down

0 comments on commit 3c0bda5

Please sign in to comment.