Subversion Repository Public Repository

Divide-Framework

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

Diff Revisions 390 vs 411 for /trunk/Source Code/Rendering/RenderPass/Reflector.cpp

Diff revisions: vs.
  @@ -89,18 +89,10 @@
89 89 #ifdef _DEBUG
90 90 if (_previewReflection) {
91 91 F32 height = _resolution.y * 0.333f;
92 - _reflectedTexture->Bind(
93 - to_uint(ShaderProgram::TextureUsage::UNIT0));
94 - vec4<I32> viewport(
95 - 0, Application::getInstance().getResolution().y - height,
96 - _resolution.x * 0.333f, height);
97 - GFX_DEVICE.renderInViewport(
98 - viewport,
99 - DELEGATE_BIND(
100 - (void (GFXDevice::*)(U32, size_t, ShaderProgram* const)) &
101 - GFXDevice::drawPoints,
102 - &GFX_DEVICE, 1, GFX_DEVICE.getDefaultStateBlock(true),
103 - _previewReflectionShader));
92 + _reflectedTexture->Bind(to_uint(ShaderProgram::TextureUsage::UNIT0));
93 + GFX::ScopedViewport viewport(0, Application::getInstance().getResolution().y - height,
94 + _resolution.x * 0.333f, height);
95 + GFX_DEVICE.drawPoints(1, GFX_DEVICE.getDefaultStateBlock(true), _previewReflectionShader);
104 96 }
105 97 #endif
106 98 }