소스 검색

Update modify_atlas.script

Björn Ritzl 2 년 전
부모
커밋
ae3a712b65
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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,