diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2018-07-05 19:18:53 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2018-07-05 19:18:53 +0000 |
| commit | a5f7f7836865e02c265704b6b4abf7ab1916962d (patch) | |
| tree | ec38a386d69d6e8690d532e54aad040ccab23f9e /Graphics/GraphicsEngineOpenGL | |
| parent | Added NDC attribs data to DeviceCaps structure (diff) | |
| download | DiligentCore-a5f7f7836865e02c265704b6b4abf7ab1916962d.tar.gz DiligentCore-a5f7f7836865e02c265704b6b4abf7ab1916962d.zip | |
Added shader compiler error reporting in Vulkan
Diffstat (limited to 'Graphics/GraphicsEngineOpenGL')
| -rw-r--r-- | Graphics/GraphicsEngineOpenGL/src/ShaderGLImpl.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Graphics/GraphicsEngineOpenGL/src/ShaderGLImpl.cpp b/Graphics/GraphicsEngineOpenGL/src/ShaderGLImpl.cpp index 4f4d4d42..f5d2d038 100644 --- a/Graphics/GraphicsEngineOpenGL/src/ShaderGLImpl.cpp +++ b/Graphics/GraphicsEngineOpenGL/src/ShaderGLImpl.cpp @@ -93,6 +93,7 @@ ShaderGLImpl::ShaderGLImpl(IReferenceCounters *pRefCounters, RenderDeviceGLImpl if (CreationAttribs.ppCompilerOutput != nullptr) { + // infoLogLen accounts for null terminator auto *pOutputDataBlob = MakeNewRCObj<DataBlobImpl>()(infoLogLen + FullSource.length() + 1); char* DataPtr = reinterpret_cast<char*>(pOutputDataBlob->GetDataPtr()); memcpy(DataPtr, !infoLog.empty() ? infoLog.data() : nullptr, infoLogLen); |
