From a5f7f7836865e02c265704b6b4abf7ab1916962d Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Thu, 5 Jul 2018 12:18:53 -0700 Subject: Added shader compiler error reporting in Vulkan --- Graphics/GraphicsEngineOpenGL/src/ShaderGLImpl.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'Graphics/GraphicsEngineOpenGL') 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()(infoLogLen + FullSource.length() + 1); char* DataPtr = reinterpret_cast(pOutputDataBlob->GetDataPtr()); memcpy(DataPtr, !infoLog.empty() ? infoLog.data() : nullptr, infoLogLen); -- cgit v1.2.3