diff options
| author | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2012-08-31 15:01:19 +0200 |
|---|---|---|
| committer | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2012-08-31 15:01:19 +0200 |
| commit | 794a7a5888e40394ce74e343de33ab8df1a755e4 (patch) | |
| tree | ee7184ba08143c0a7bed269ae187f80fc8bcfddd | |
| parent | 44a054a594ccb9892d190deac07c1a0eda774bc0 (diff) | |
LensView: fallback to normal renderer (instead of Coverflow) if GLSL is enabled
(bzr r2641.1.6)
| -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); |
