Subversion Repository Public Repository

Divide-Framework

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

Diff Revisions 771 vs 776 for /trunk/Source Code/Geometry/Material/Material.cpp

Diff revisions: vs.
  @@ -278,7 +278,7 @@
278 278 void Material::updateReflectionIndex(I32 index) {
279 279 _reflectionIndex = index;
280 280 if (_reflectionIndex > -1) {
281 - RenderTarget& reflectionTarget = GFX_DEVICE.renderTarget(RenderTargetID::REFLECTION, index);
281 + RenderTarget& reflectionTarget = GFX_DEVICE.renderTarget(RenderTargetID(RenderTargetUsage::REFLECTION, index));
282 282 const Texture_ptr& refTex = reflectionTarget.getAttachment(RTAttachment::Type::Colour, 0).asTexture();
283 283 setTexture(ShaderProgram::TextureUsage::REFLECTION, refTex);
284 284 } else {
  @@ -289,7 +289,7 @@
289 289 void Material::updateRefractionIndex(I32 index) {
290 290 _refractionIndex = index;
291 291 if (_refractionIndex > -1) {
292 - RenderTarget& refractionTarget = GFX_DEVICE.renderTarget(RenderTargetID::REFRACTION, index);
292 + RenderTarget& refractionTarget = GFX_DEVICE.renderTarget(RenderTargetID(RenderTargetUsage::REFRACTION, index));
293 293 const Texture_ptr& refTex = refractionTarget.getAttachment(RTAttachment::Type::Colour, 0).asTexture();
294 294 setTexture(ShaderProgram::TextureUsage::REFRACTION, refTex);
295 295 } else {