summaryrefslogtreecommitdiff
path: root/dash
diff options
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2012-08-31 15:01:19 +0200
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2012-08-31 15:01:19 +0200
commit794a7a5888e40394ce74e343de33ab8df1a755e4 (patch)
treeee7184ba08143c0a7bed269ae187f80fc8bcfddd /dash
parent44a054a594ccb9892d190deac07c1a0eda774bc0 (diff)
LensView: fallback to normal renderer (instead of Coverflow) if GLSL is enabled
(bzr r2641.1.6)
Diffstat (limited to 'dash')
-rwxr-xr-xdash/LensView.cpp6
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);