~unity-team/nux/nux.armel-fixes

« back to all changes in this revision

Viewing changes to Nux/View.cpp

Fixes undefined behaviour caused by the use of undefined variables.. Fixes: . Approved by Brandon Schaefer.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * Copyright 2010 Inalogic® Inc.
 
2
 * Copyright 2010, 2012 Inalogic® Inc.
3
3
 *
4
4
 * This program is free software: you can redistribute it and/or modify it
5
5
 * under the terms of the GNU Lesser General Public License, as
31
31
 
32
32
  View::View(NUX_FILE_LINE_DECL)
33
33
  : InputArea(NUX_FILE_LINE_PARAM)
34
 
//   , redirect_rendering_to_texture_(false)
35
 
//   , update_backup_texture_(false)
 
34
  , m_TextColor(1.0f, 1.0f, 1.0f, 1.0f)
 
35
  , view_layout_(nullptr)
 
36
  , draw_cmd_queued_(false)
 
37
  , child_draw_cmd_queued_(false)
36
38
  {
37
 
    view_layout_      = NULL;
38
 
    draw_cmd_queued_  = false;
39
 
    m_TextColor       = Color(1.0f, 1.0f, 1.0f, 1.0f);
40
39
  }
41
40
 
42
41
  View::~View()