summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineOpenGL
diff options
context:
space:
mode:
authorassiduous <assiduous@diligentgraphics.com>2020-01-26 19:37:26 +0000
committerassiduous <assiduous@diligentgraphics.com>2020-01-26 19:37:26 +0000
commitdede98a2da8e4bd9c8e26f2a51f71b1d82905147 (patch)
tree433d246ac7ddb238c7d1ed04902647111fb74809 /Graphics/GraphicsEngineOpenGL
parentFixed Render device, query, PSO and fence C interfaces; added render device C... (diff)
downloadDiligentCore-dede98a2da8e4bd9c8e26f2a51f71b1d82905147.tar.gz
DiligentCore-dede98a2da8e4bd9c8e26f2a51f71b1d82905147.zip
Added query C interface test
Diffstat (limited to 'Graphics/GraphicsEngineOpenGL')
-rw-r--r--Graphics/GraphicsEngineOpenGL/src/QueryGLImpl.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/Graphics/GraphicsEngineOpenGL/src/QueryGLImpl.cpp b/Graphics/GraphicsEngineOpenGL/src/QueryGLImpl.cpp
index a33de7ce..3308e841 100644
--- a/Graphics/GraphicsEngineOpenGL/src/QueryGLImpl.cpp
+++ b/Graphics/GraphicsEngineOpenGL/src/QueryGLImpl.cpp
@@ -54,6 +54,9 @@ QueryGLImpl::~QueryGLImpl()
bool QueryGLImpl::GetData(void* pData, Uint32 DataSize, bool AutoInvalidate)
{
+ if (!TQueryBase::CheckQueryDataPtr(pData, DataSize))
+ return false;
+
GLuint ResultAvailable = GL_FALSE;
switch (m_Desc.Type)