File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -240,12 +240,12 @@ void TileBank :: from_xml(
240
240
)
241
241
);
242
242
243
- auto image_size = uvec2 (
244
- boost::lexical_cast<int >(safe_ptr (
245
- image_node->first_attribute (" width" ))->value ()),
246
- boost::lexical_cast<int >(safe_ptr (
247
- image_node->first_attribute (" height" ))->value ())
248
- );
243
+ // auto image_size = uvec2(
244
+ // boost::lexical_cast<int>(safe_ptr(
245
+ // image_node->first_attribute("width"))->value()),
246
+ // boost::lexical_cast<int>(safe_ptr(
247
+ // image_node->first_attribute("height"))->value())
248
+ // );
249
249
250
250
size_t offset = boost::lexical_cast<size_t >(safe_ptr (
251
251
xml->first_attribute (" firstgid" ))->value ()
@@ -262,6 +262,8 @@ void TileBank :: from_xml(
262
262
263
263
// LOGf("tileset texture: %s", tex_fn);
264
264
shared_ptr<ITexture> texture = resources->cache_as <Material>(tex_fn);
265
+
266
+ auto image_size = texture->size ();
265
267
266
268
const auto num_tiles = uvec2 (
267
269
image_size.x / m_TileSize.x ,
You can’t perform that action at this time.
0 commit comments