Legends (#2786): Fix Debug-build of Resinsight.

This commit is contained in:
Gaute Lindkvist
2018-04-23 13:08:35 +02:00
parent 765b170efd
commit 517a557efe
2 changed files with 8 additions and 8 deletions

View File

@@ -247,8 +247,8 @@ void CategoryLegend::renderLegendUsingShaders(OpenGLContext* oglContext,
CVF_CALLSITE_OPENGL(oglContext);
CVF_TIGHT_ASSERT(layout);
CVF_TIGHT_ASSERT(layout->size.x() > 0);
CVF_TIGHT_ASSERT(layout->size.y() > 0);
CVF_TIGHT_ASSERT(layout->overallLegendSize.x() > 0);
CVF_TIGHT_ASSERT(layout->overallLegendSize.y() > 0);
RenderStateDepth depth(false);
depth.applyOpenGL(oglContext);
@@ -370,8 +370,8 @@ void CategoryLegend::renderLegendImmediateMode(OpenGLContext* oglContext, Overla
CVF_FAIL_MSG("Not supported on OpenGL ES");
#else
CVF_TIGHT_ASSERT(layout);
CVF_TIGHT_ASSERT(layout->size.x() > 0);
CVF_TIGHT_ASSERT(layout->size.y() > 0);
CVF_TIGHT_ASSERT(layout->overallLegendSize.x() > 0);
CVF_TIGHT_ASSERT(layout->overallLegendSize.y() > 0);
RenderStateDepth depth(false);
depth.applyOpenGL(oglContext);

View File

@@ -314,8 +314,8 @@ void OverlayScalarMapperLegend::renderLegendUsingShaders(OpenGLContext* oglConte
CVF_CALLSITE_OPENGL(oglContext);
CVF_TIGHT_ASSERT(layout);
CVF_TIGHT_ASSERT(layout->size.x() > 0);
CVF_TIGHT_ASSERT(layout->size.y() > 0);
CVF_TIGHT_ASSERT(layout->overallLegendSize.x() > 0);
CVF_TIGHT_ASSERT(layout->overallLegendSize.y() > 0);
RenderStateDepth depth(false);
depth.applyOpenGL(oglContext);
@@ -481,8 +481,8 @@ void OverlayScalarMapperLegend::renderLegendImmediateMode(OpenGLContext* oglCont
CVF_FAIL_MSG("Not supported on OpenGL ES");
#else
CVF_TIGHT_ASSERT(layout);
CVF_TIGHT_ASSERT(layout->size.x() > 0);
CVF_TIGHT_ASSERT(layout->size.y() > 0);
CVF_TIGHT_ASSERT(layout->overallLegendSize.x() > 0);
CVF_TIGHT_ASSERT(layout->overallLegendSize.y() > 0);
RenderStateDepth depth(false);
depth.applyOpenGL(oglContext);