Ecere Software
/
sdk
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
88d8848
)
samples/3D/walkAround: Fixed crash on reloading graphics (e.g. fullscreen switch)
author
Jerome St-Louis
<jerome@ecere.com>
Thu, 8 May 2014 17:03:47 +0000
(13:03 -0400)
committer
Jerome St-Louis
<jerome@ecere.com>
Thu, 8 May 2014 17:03:47 +0000
(13:03 -0400)
samples/3D/walkAround/walkAround.ec
patch
|
blob
|
history
diff --git
a/samples/3D/walkAround/walkAround.ec
b/samples/3D/walkAround/walkAround.ec
index
0e0960d
..
128b955
100644
(file)
--- a/
samples/3D/walkAround/walkAround.ec
+++ b/
samples/3D/walkAround/walkAround.ec
@@
-106,7
+106,7
@@
class WalkAroundForm : Window
hasClose = true;
clientSize = { 632, 438 };
- Array<Material> materials {
size = 8
};
+ Array<Material> materials { };
Array<int> map { size = width * height };
Array<int> elv { size = width * height };
Array<Cube> cubes { };
@@
-173,6
+173,7
@@
class WalkAroundForm : Window
cow3.material = cow3Mat;
cow3Mat.baseMap = spotTex.bitmap;
+ materials.size = 8;
if(textureFile.Load(":texture1.pcx", null, null))
{
int count = 8;