summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineOpenGL
diff options
context:
space:
mode:
authorAssiduous <61806567+TheMostDiligent@users.noreply.github.com>2020-05-08 23:53:03 +0000
committerGitHub <noreply@github.com>2020-05-08 23:53:03 +0000
commit396749ffb6687896b7e070197ad1d557a5ad6a29 (patch)
treeda509287fbcba6644d74abf1859a674820b37185 /Graphics/GraphicsEngineOpenGL
parentVK backend: improved debug string for render pass objects (diff)
parentUpdate FBOCache.cpp (diff)
downloadDiligentCore-396749ffb6687896b7e070197ad1d557a5ad6a29.tar.gz
DiligentCore-396749ffb6687896b7e070197ad1d557a5ad6a29.zip
Merge pull request #137 from markusgod/master
Small fixes.
Diffstat (limited to 'Graphics/GraphicsEngineOpenGL')
-rw-r--r--Graphics/GraphicsEngineOpenGL/src/VAOCache.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Graphics/GraphicsEngineOpenGL/src/VAOCache.cpp b/Graphics/GraphicsEngineOpenGL/src/VAOCache.cpp
index cecadcba..8838b968 100644
--- a/Graphics/GraphicsEngineOpenGL/src/VAOCache.cpp
+++ b/Graphics/GraphicsEngineOpenGL/src/VAOCache.cpp
@@ -190,7 +190,7 @@ const GLObjectWrappers::GLVertexArrayObj& VAOCache::GetVAO(IPipelineState*
constexpr bool ResetVAO = false;
GLState.BindBuffer(GL_ARRAY_BUFFER, pBufferOGL->m_GlBuffer, ResetVAO);
- GLvoid* DataStartOffset = reinterpret_cast<GLvoid*>(static_cast<size_t>(CurrStream.Offset + LayoutIt->RelativeOffset));
+ GLvoid* DataStartOffset = reinterpret_cast<GLvoid*>(static_cast<size_t>(CurrStream.Offset) + static_cast<size_t>(LayoutIt->RelativeOffset));
auto GlType = TypeToGLType(LayoutIt->ValueType);
if (!LayoutIt->IsNormalized &&
(LayoutIt->ValueType == VT_INT8 ||