Quellcode durchsuchen

[c] Closes #2264, initialize atlas page defaults properly.

Mario Zechner vor 2 Jahren
Ursprung
Commit
7a5c6995ef
1 geänderte Dateien mit 5 neuen und 0 gelöschten Zeilen
  1. 5 0
      spine-c/spine-c/src/spine/Atlas.c

+ 5 - 0
spine-c/spine-c/src/spine/Atlas.c

@@ -99,6 +99,11 @@ spAtlasPage *spAtlasPage_create(spAtlas *atlas, const char *name) {
 	spAtlasPage *self = NEW(spAtlasPage);
 	spAtlasPage *self = NEW(spAtlasPage);
 	CONST_CAST(spAtlas *, self->atlas) = atlas;
 	CONST_CAST(spAtlas *, self->atlas) = atlas;
 	MALLOC_STR(self->name, name);
 	MALLOC_STR(self->name, name);
+    self->minFilter = SP_ATLAS_NEAREST;
+    self->magFilter = SP_ATLAS_NEAREST;
+    self->format = SP_ATLAS_RGBA8888;
+    self->uWrap = SP_ATLAS_CLAMPTOEDGE;
+    self->vWrap = SP_ATLAS_CLAMPTOEDGE;
 	return self;
 	return self;
 }
 }