Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions src/fidget/opengl/context.nim
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,6 @@ proc hash(v: Vec2): Hash =
proc grow(ctx: Context) =
ctx.draw()
ctx.atlasSize = ctx.atlasSize * 2
echo "grow atlasSize ", ctx.atlasSize
ctx.heights.setLen(ctx.atlasSize)
ctx.atlasTexture = ctx.createAtlasTexture(ctx.atlasSize)
ctx.entries.clear()
Expand Down Expand Up @@ -424,7 +423,6 @@ proc getOrLoadImageRect(ctx: Context, imagePath: string | Hash): Rect =
filePath.add ".png"
if hash(filePath) notin ctx.entries:
# Need to load imagePath, check to see if the .flippy file is around
echo "[load] ", filePath
if not fileExists(filePath):
raise newException(Exception, &"Image '{filePath}' not found")
let flippyFilePath = filePath.changeFileExt(".flippy")
Expand Down