diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2018-03-28 02:39:35 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2018-03-28 02:39:35 +0000 |
| commit | 0a63fc06246a3868e11741cd3682accc069ba868 (patch) | |
| tree | 8a65583afbd2edab34aa91704e4bb365c3c2111a /Graphics/GraphicsEngineOpenGL | |
| parent | Added shader compiler log output (diff) | |
| download | DiligentCore-0a63fc06246a3868e11741cd3682accc069ba868.tar.gz DiligentCore-0a63fc06246a3868e11741cd3682accc069ba868.zip | |
Added shader name output when shader compilation fails
Diffstat (limited to 'Graphics/GraphicsEngineOpenGL')
| -rw-r--r-- | Graphics/GraphicsEngineOpenGL/src/ShaderGLImpl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Graphics/GraphicsEngineOpenGL/src/ShaderGLImpl.cpp b/Graphics/GraphicsEngineOpenGL/src/ShaderGLImpl.cpp index dad50a0c..7b9d93ac 100644 --- a/Graphics/GraphicsEngineOpenGL/src/ShaderGLImpl.cpp +++ b/Graphics/GraphicsEngineOpenGL/src/ShaderGLImpl.cpp @@ -285,7 +285,7 @@ ShaderGLImpl::ShaderGLImpl(IReferenceCounters *pRefCounters, RenderDeviceGLImpl FullSource.append(str); std::stringstream ErrorMsgSS; - ErrorMsgSS << "Failed to compile shader file \""<< (CreationAttribs.FilePath != nullptr ? CreationAttribs.FilePath : "") << '\"' << std::endl; + ErrorMsgSS << "Failed to compile shader file \""<< (CreationAttribs.Desc.Name != nullptr ? CreationAttribs.Desc.Name : "") << '\"' << std::endl; int infoLogLen = 0; // The function glGetShaderiv() tells how many bytes to allocate; the length includes the NULL terminator. glGetShaderiv(ShaderObj, GL_INFO_LOG_LENGTH, &infoLogLen); |
