Explorar el Código

Update modify_atlas.script

Björn Ritzl hace 2 años
padre
commit
ae3a712b65
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      examples/resource/modify_atlas/modify_atlas.script

+ 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,