diff options
| -rwxr-xr-x | dash/LensView.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dash/LensView.cpp b/dash/LensView.cpp index 8a5e2e077..2e8ab0903 100755 --- a/dash/LensView.cpp +++ b/dash/LensView.cpp @@ -305,7 +305,7 @@ void LensView::OnCategoryAdded(Category const& category) counts_[group] = 0; ResultView* grid; - + if (renderer_name == "tile-horizontal") { grid = new ResultViewGrid(NUX_TRACKER_LOCATION); @@ -313,12 +313,12 @@ void LensView::OnCategoryAdded(Category const& category) static_cast<ResultViewGrid*> (grid)->horizontal_spacing = CARD_VIEW_GAP_HORIZ; static_cast<ResultViewGrid*> (grid)->vertical_spacing = CARD_VIEW_GAP_VERT; } - else if (renderer_name == "flow") + else if (renderer_name == "flow" && nux::GetWindowThread()->GetGraphicsEngine().UsingGLSLCodePath()) { grid = new CoverflowResultView(NUX_TRACKER_LOCATION); grid->SetModelRenderer(new ResultRendererTile(NUX_TRACKER_LOCATION)); group->SetHeaderCountVisible(false); - } + } else { grid = new ResultViewGrid(NUX_TRACKER_LOCATION); |
