Subversion Repository Public Repository

Divide-Framework

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

Diff Revisions 788 vs 801 for /trunk/Source Code/Geometry/Material/Material.cpp

Diff revisions: vs.
  @@ -275,7 +275,7 @@
275 275 void Material::updateReflectionIndex(I32 index) {
276 276 _reflectionIndex = index;
277 277 if (_reflectionIndex > -1) {
278 - RenderTarget& reflectionTarget = GFX_DEVICE.renderTarget(RenderTargetID(RenderTargetUsage::REFLECTION, index));
278 + RenderTarget& reflectionTarget = GFXDevice::instance().renderTarget(RenderTargetID(RenderTargetUsage::REFLECTION, index));
279 279 const Texture_ptr& refTex = reflectionTarget.getAttachment(RTAttachment::Type::Colour, 0).asTexture();
280 280 setTexture(ShaderProgram::TextureUsage::REFLECTION, refTex);
281 281 } else {
  @@ -286,7 +286,7 @@
286 286 void Material::updateRefractionIndex(I32 index) {
287 287 _refractionIndex = index;
288 288 if (_refractionIndex > -1) {
289 - RenderTarget& refractionTarget = GFX_DEVICE.renderTarget(RenderTargetID(RenderTargetUsage::REFRACTION, index));
289 + RenderTarget& refractionTarget = GFXDevice::instance().renderTarget(RenderTargetID(RenderTargetUsage::REFRACTION, index));
290 290 const Texture_ptr& refTex = refractionTarget.getAttachment(RTAttachment::Type::Colour, 0).asTexture();
291 291 setTexture(ShaderProgram::TextureUsage::REFRACTION, refTex);
292 292 } else {
  @@ -494,7 +494,7 @@
494 494 void Material::getTextureData(TextureDataContainer& textureData) {
495 495 const U32 textureCount = to_const_uint(ShaderProgram::TextureUsage::COUNT);
496 496
497 - if (!GFX_DEVICE.isDepthStage()) {
497 + if (!GFXDevice::instance().isDepthStage()) {
498 498 getTextureData(ShaderProgram::TextureUsage::UNIT0, textureData);
499 499 getTextureData(ShaderProgram::TextureUsage::UNIT1, textureData);
500 500 getTextureData(ShaderProgram::TextureUsage::OPACITY, textureData);