From: <hug...@li...> - 2010-08-29 10:36:03
|
details: http://hugin.hg.sourceforge.net/hgweb/hugin/hugin/hgrepo/h/hu/hugin/hugin/rev/ffe61ba473b2 changeset: 4260:ffe61ba473b2 user: tmodes date: Sun Aug 29 12:35:34 2010 +0200 description: Fill blend mode choice box only once diffstat: src/hugin1/hugin/GLViewer.cpp | 11 +++++------ 1 files changed, 5 insertions(+), 6 deletions(-) diffs (35 lines): diff -r 349df7560ec8 -r ffe61ba473b2 src/hugin1/hugin/GLViewer.cpp --- a/src/hugin1/hugin/GLViewer.cpp Sun Aug 29 09:49:18 2010 +0200 +++ b/src/hugin1/hugin/GLViewer.cpp Sun Aug 29 12:35:34 2010 +0200 @@ -161,11 +161,6 @@ } setUp(); - // check, if gpu supports multitextures - // fill blend mode choice box in fast preview window - // we can fill it just now, because we need a OpenGL context, which was created now, - // to check if all necessary extentions are available - frame->FillBlendChoice(); } } @@ -187,6 +182,11 @@ m_renderer = new GLPreviewRenderer(m_pano, m_view_state->GetTextureManager(), m_visualization_state->GetMeshManager(), m_visualization_state, helper); + // check, if gpu supports multitextures + // fill blend mode choice box in fast preview window + // we can fill it just now, because we need a OpenGL context, which was created now, + // to check if all necessary extentions are available + frame->FillBlendChoice(); } void GLOverview::setUp() @@ -231,7 +231,6 @@ m_renderer = plane_m_renderer; break; } - } void GLViewer::SetPhotometricCorrect(bool state) |