summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineOpenGL
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2018-07-25 04:45:59 +0000
committerEgor Yusov <egor.yusov@gmail.com>2018-07-25 04:45:59 +0000
commit946884fb264969aa03e5d266d2349c8a74e5cf55 (patch)
treed70f8ec7977f829588e7bf8250ab1040981d3df0 /Graphics/GraphicsEngineOpenGL
parentUpdated DeviceContextBase to use final types for pipeline state, buffers and ... (diff)
downloadDiligentCore-946884fb264969aa03e5d266d2349c8a74e5cf55.tar.gz
DiligentCore-946884fb264969aa03e5d266d2349c8a74e5cf55.zip
Updated VertexStreamInfo to use final buffer implementation type
Diffstat (limited to 'Graphics/GraphicsEngineOpenGL')
-rw-r--r--Graphics/GraphicsEngineOpenGL/include/VAOCache.h3
-rw-r--r--Graphics/GraphicsEngineOpenGL/src/VAOCache.cpp2
2 files changed, 3 insertions, 2 deletions
diff --git a/Graphics/GraphicsEngineOpenGL/include/VAOCache.h b/Graphics/GraphicsEngineOpenGL/include/VAOCache.h
index 5b064b50..2160d97f 100644
--- a/Graphics/GraphicsEngineOpenGL/include/VAOCache.h
+++ b/Graphics/GraphicsEngineOpenGL/include/VAOCache.h
@@ -31,6 +31,7 @@
#include "HashUtils.h"
#include "DeviceContextBase.h"
#include "BaseInterfacesGL.h"
+#include "BufferGLImpl.h"
namespace Diligent
{
@@ -50,7 +51,7 @@ public:
const GLObjectWrappers::GLVertexArrayObj& GetVAO( IPipelineState *pPSO,
IBuffer *pIndexBuffer,
- VertexStreamInfo VertexStreams[],
+ VertexStreamInfo<BufferGLImpl> VertexStreams[],
Uint32 NumVertexStreams,
class GLContextState &GLContextState);
const GLObjectWrappers::GLVertexArrayObj& GetEmptyVAO();
diff --git a/Graphics/GraphicsEngineOpenGL/src/VAOCache.cpp b/Graphics/GraphicsEngineOpenGL/src/VAOCache.cpp
index 18ad1ff8..04c2789c 100644
--- a/Graphics/GraphicsEngineOpenGL/src/VAOCache.cpp
+++ b/Graphics/GraphicsEngineOpenGL/src/VAOCache.cpp
@@ -73,7 +73,7 @@ void VAOCache::OnDestroyPSO(IPipelineState *pPSO)
const GLObjectWrappers::GLVertexArrayObj& VAOCache::GetVAO( IPipelineState *pPSO,
IBuffer *pIndexBuffer,
- VertexStreamInfo VertexStreams[],
+ VertexStreamInfo<BufferGLImpl> VertexStreams[],
Uint32 NumVertexStreams,
GLContextState &GLContextState )
{