Subversion Repository Public Repository

Divide-Framework

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

Diff Revisions 712 vs 718 for /trunk/Source Code/Geometry/Material/Material.cpp

Diff revisions: vs.
  @@ -315,9 +315,9 @@
315 315 void Material::updateReflectionIndex(I32 index) {
316 316 _reflectionIndex = index;
317 317 if (_reflectionIndex > -1) {
318 - GFXDevice::RenderTarget& reflectionTarget = GFX_DEVICE.reflectionTarget(index);
319 - assert(reflectionTarget._buffer != nullptr);
320 - setTexture(ShaderProgram::TextureUsage::REFLECTION, reflectionTarget._buffer->getAttachment());
318 + GFXDevice::RenderTargetWrapper& reflectionTarget = GFX_DEVICE.reflectionTarget(index);
319 + assert(reflectionTarget._target != nullptr);
320 + setTexture(ShaderProgram::TextureUsage::REFLECTION, reflectionTarget._target->getAttachment());
321 321 } else {
322 322 setTexture(ShaderProgram::TextureUsage::REFLECTION, Texture_ptr());
323 323 }
  @@ -326,9 +326,9 @@
326 326 void Material::updateRefractionIndex(I32 index) {
327 327 _refractionIndex = index;
328 328 if (_refractionIndex > -1) {
329 - GFXDevice::RenderTarget& refractionTarget = GFX_DEVICE.refractionTarget(index);
330 - assert(refractionTarget._buffer != nullptr);
331 - setTexture(ShaderProgram::TextureUsage::REFRACTION, refractionTarget._buffer->getAttachment());
329 + GFXDevice::RenderTargetWrapper& refractionTarget = GFX_DEVICE.refractionTarget(index);
330 + assert(refractionTarget._target != nullptr);
331 + setTexture(ShaderProgram::TextureUsage::REFRACTION, refractionTarget._target->getAttachment());
332 332 } else {
333 333 setTexture(ShaderProgram::TextureUsage::REFRACTION, Texture_ptr());
334 334 }