summaryrefslogtreecommitdiffstats
path: root/virtual-programs
diff options
context:
space:
mode:
authorOmar Rizwan <omar@omar.website>2023-10-26 12:05:26 +0000
committerOmar Rizwan <omar@omar.website>2023-10-26 12:06:18 +0000
commitdbaab88cd56c0247c6247b8d38f2ca56b79eb595 (patch)
tree1a9db7eb7338d4f3ccfeed12750639507ab773d5 /virtual-programs
parentadd freeImage proc to images.folk (diff)
downloadfolk-dbaab88cd56c0247c6247b8d38f2ca56b79eb595.tar.gz
folk-dbaab88cd56c0247c6247b8d38f2ca56b79eb595.zip
display: Handle if this doesn't exist
Diffstat (limited to 'virtual-programs')
-rw-r--r--virtual-programs/display.folk1
1 files changed, 1 insertions, 0 deletions
diff --git a/virtual-programs/display.folk b/virtual-programs/display.folk
index 15df565d..2853c065 100644
--- a/virtual-programs/display.folk
+++ b/virtual-programs/display.folk
@@ -147,6 +147,7 @@ namespace eval ::Display {
# for backward compatibility now.
proc warnDeprecated {} {
upvar 2 this this
+ if {![info exists this]} {set this "<unknown>"}
set func [lindex [info level -1] 0]
set w "$func was deprecated in Oct 2023; use GPU wishes/shaders"
Claim $this has warning $w with info $w