Don't show bounding box around rasterized output in mesh viewer

This commit is contained in:
baldurk
2017-05-31 11:39:00 +01:00
parent ed38e47c92
commit 973cbd380f
+8 -1
View File
@@ -2329,7 +2329,14 @@ void BufferViewer::UpdateMeshConfig()
m_Config.showBBox = false;
if(model)
bool nonRasterizedOutput = false;
if(stage == 0)
nonRasterizedOutput = true;
else if(stage == 1 && m_Ctx.CurPipelineState().IsTessellationEnabled())
nonRasterizedOutput = true;
if(model && nonRasterizedOutput)
{
int posEl = model->posColumn();
if(posEl >= 0 && posEl < model->columns.count() && posEl < bbox.bounds[stage].Min.count())