Subversion Repository Public Repository

Divide-Framework

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

Diff Revisions 933 vs 938 for /trunk/Source Code/Environment/Sky/Sky.cpp

Diff revisions: vs.
  @@ -95,9 +95,8 @@
95 95 RenderingComponent* renderable = sgn.get<RenderingComponent>();
96 96 if (renderable) {
97 97 renderable->toggleRenderOption(RenderingComponent::RenderOptions::CAST_SHADOWS, false);
98 - TextureData skyTextureData = _skybox->getData();
99 - skyTextureData.setHandleLow(to_base(ShaderProgram::TextureUsage::UNIT0));
100 - renderable->registerTextureDependency(skyTextureData);
98 + renderable->registerTextureDependency(_skybox->getData(),
99 + to_U8(ShaderProgram::TextureUsage::UNIT0));
101 100 }
102 101
103 102 SceneNode::postLoad(sgn);