From 5d4ad2a5f23d031589f459391a5d5754169618cd Mon Sep 17 00:00:00 2001 From: assiduous Date: Thu, 27 Aug 2020 13:24:32 -0700 Subject: Fixed iOS build issue --- Graphics/GraphicsEngineOpenGL/src/DeviceContextGLImpl.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Graphics/GraphicsEngineOpenGL') diff --git a/Graphics/GraphicsEngineOpenGL/src/DeviceContextGLImpl.cpp b/Graphics/GraphicsEngineOpenGL/src/DeviceContextGLImpl.cpp index c1f038bf..49f78cb3 100644 --- a/Graphics/GraphicsEngineOpenGL/src/DeviceContextGLImpl.cpp +++ b/Graphics/GraphicsEngineOpenGL/src/DeviceContextGLImpl.cpp @@ -1332,8 +1332,12 @@ void DeviceContextGLImpl::BeginQuery(IQuery* pQuery) break; case QUERY_TYPE_DURATION: +#if GL_TIME_ELAPSED glBeginQuery(GL_TIME_ELAPSED, glQuery); DEV_CHECK_GL_ERROR("Failed to begin GL_TIME_ELAPSED query"); +#else + LOG_ERROR_MESSAGE_ONCE("Duration queries are not supported by this device"); +#endif break; default: -- cgit v1.2.3