Skip to content

Commit

Permalink
Fix an error when using dgsImageSetImage
Browse files Browse the repository at this point in the history
  • Loading branch information
xLive committed Apr 19, 2021
1 parent b56aa62 commit 4f32f39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Core/image.lua
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ function dgsImageSetImage(image,img)
texture,textureExists = dgsImageCreateTextureExternal(image,sourceResource,texture)
if not textureExists then return false end
end
local materialSize = dgsElementData[image].materialSize
local materialSize = dgsElementData[image].materialInfo
materialSize[0] = texture
if isElement(texture) then
materialSize[1],materialSize[2] = dxGetMaterialSize(texture)
Expand Down

0 comments on commit 4f32f39

Please sign in to comment.