mirror of
https://github.com/zoriya/Gamacon.git
synced 2026-06-01 11:17:08 +00:00
Disabling the repeated texture when not needed
This commit is contained in:
@@ -43,7 +43,7 @@ gc_data *sfml_sprite_loader(gc_engine *engine, gc_scene *scene, node *n)
|
||||
data->custom = sfTexture_createFromFile(data->name, NULL);
|
||||
if (!data->custom)
|
||||
return (NULL);
|
||||
sfTexture_setRepeated(data->custom, sfTrue);
|
||||
sfTexture_setRepeated(data->custom, xml_hasproperty(n, "repeated"));
|
||||
data->destroy = &sfml_texture_destroy;
|
||||
if (xml_hasproperty(n, "name"))
|
||||
data->name = xml_getproperty(n, "name");
|
||||
|
||||
Reference in New Issue
Block a user