Skip to content

Commit 95e0f4c

Browse files
committed
Update project for Defold 1.8.0
1 parent 9a9d828 commit 95e0f4c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

example/webgl_memory.gui

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
script: "/example/webgl_memory.gui_script"
22
fonts {
3-
name: "system_font"
4-
font: "/builtins/fonts/system_font.font"
3+
name: "default"
4+
font: "/builtins/fonts/default.font"
55
}
66
background_color {
77
x: 0.0
@@ -43,7 +43,7 @@ nodes {
4343
type: TYPE_TEXT
4444
blend_mode: BLEND_MODE_ALPHA
4545
text: "<text>"
46-
font: "system_font"
46+
font: "default"
4747
id: "text"
4848
xanchor: XANCHOR_LEFT
4949
yanchor: YANCHOR_BOTTOM

webgl_memory/lib/web/lib_webgl_memory.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ var LibraryWebGLMemory = {
44

55
cstringify: function (obj) {
66
var str = JSON.stringify(obj);
7-
var cstr = allocate(intArrayFromString(str), "i8", ALLOC_NORMAL);
7+
var cstr = stringToNewUTF8(str);
88
return cstr;
99
},
1010

0 commit comments

Comments
 (0)