Procházet zdrojové kódy

Update modify_atlas.script

Björn Ritzl před 2 roky
rodič
revize
ae3a712b65

+ 2 - 2
examples/resource/modify_atlas/modify_atlas.script

@@ -51,10 +51,10 @@ local function replace_atlas_image()
 	print(x, y)
 	print(width, height)
 	local texture_info = {
-		type = texture.type, -- resource.TEXTURE_TYPE_2D,
+		type = resource.TEXTURE_TYPE_2D,
 		width = width,
 		height = height,
-		format = resource.TEXTURE_FORMAT_RGBA, -- why is there no texture.format?
+		format = resource.TEXTURE_FORMAT_RGBA,
 		x = x,
 		y = y,
 		compression_type = resource.COMPRESSION_TYPE_DEFAULT,