Subversion Repository Public Repository

Divide-Framework

This repository has no backups
This repository's network speed is throttled to 100KB/sec

Diff Revisions 707 vs 709 for /trunk/Source Code/Environment/Sky/Sky.cpp

Diff revisions: vs.
  @@ -31,13 +31,6 @@
31 31
32 32 Sky::~Sky()
33 33 {
34 - RemoveResource(_skyShader);
35 - RemoveResource(_skyShaderPrePass);
36 - RemoveResource(_skybox);
37 - }
38 -
39 - void Sky::AddRef() {
40 - TrackedObject::AddRef();
41 34 }
42 35
43 36 bool Sky::load() {
  @@ -64,7 +57,6 @@
64 57 skyboxTextures.setPropertyDescriptor<SamplerDescriptor>(skyboxSampler);
65 58 skyboxTextures.setThreadedLoading(false);
66 59 _skybox = CreateResource<Texture>(skyboxTextures);
67 - REGISTER_TRACKED_DEPENDENCY(_skybox);
68 60
69 61 F32 radius = _diameter * 0.5f;
70 62
  @@ -77,11 +69,9 @@
77 69
78 70 ResourceDescriptor skyShaderDescriptor("sky.Display");
79 71 _skyShader = CreateResource<ShaderProgram>(skyShaderDescriptor);
80 - REGISTER_TRACKED_DEPENDENCY(_skyShader);
81 72
82 73 ResourceDescriptor skyShaderPrePassDescriptor("sky.PrePass");
83 74 _skyShaderPrePass = CreateResource<ShaderProgram>(skyShaderPrePassDescriptor);
84 - REGISTER_TRACKED_DEPENDENCY(_skyShaderPrePass);
85 75
86 76 assert(_skyShader && _skyShaderPrePass);
87 77 _skyShader->Uniform("texSky", ShaderProgram::TextureUsage::UNIT0);
  @@ -98,7 +88,7 @@
98 88
99 89 assert(_sky != nullptr);
100 90
101 - sgn.addNode(*_sky, normalMask, PhysicsGroup::GROUP_IGNORE);
91 + sgn.addNode(_sky, normalMask, PhysicsGroup::GROUP_IGNORE);
102 92
103 93 RenderingComponent* renderable = sgn.get<RenderingComponent>();
104 94 renderable->castsShadows(false);