summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineOpenGL
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2018-03-28 02:39:35 +0000
committerEgor Yusov <egor.yusov@gmail.com>2018-03-28 02:39:35 +0000
commit0a63fc06246a3868e11741cd3682accc069ba868 (patch)
tree8a65583afbd2edab34aa91704e4bb365c3c2111a /Graphics/GraphicsEngineOpenGL
parentAdded shader compiler log output (diff)
downloadDiligentCore-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.cpp2
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);