File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -57,6 +57,9 @@ void backdrop::set_background(const std::string& background_file) {
57
57
58
58
auto & renderer = parent_.get_manager ().get_renderer ();
59
59
background_texture_ = renderer.create_atlas_material (" GUI" , background_file);
60
+ if (!background_texture_) {
61
+ return ;
62
+ }
60
63
61
64
tile_size_ = original_tile_size_ = static_cast <float >(background_texture_->get_rect ().width ());
62
65
background_file_ = background_file;
@@ -157,6 +160,9 @@ void backdrop::set_edge(const std::string& edge_file) {
157
160
158
161
auto & renderer = parent_.get_manager ().get_renderer ();
159
162
edge_texture_ = renderer.create_atlas_material (" GUI" , edge_file);
163
+ if (!edge_texture_) {
164
+ return ;
165
+ }
160
166
161
167
if (edge_texture_->get_rect ().width () / edge_texture_->get_rect ().height () != 8 .0f ) {
162
168
edge_texture_ = nullptr ;
You can’t perform that action at this time.
0 commit comments