History

one more try

ZappoMan committed 11 years ago

Commit ccd2f981 parent 4dadf602 files · +7 −8Browse files

Showing the changes to interface/src/ui/ApplicationOverlay.cpp (1 of 2 files). Show all

Unified · Split

interface/src/ui/ApplicationOverlay.cpp+6−7
@@ -85,6 +85,11 @@ void ApplicationOverlay::renderOverlay(RenderArgs* renderArgs) { · 84 unmodified lines
8585 gpu::Batch batch;
8686 renderArgs->_batch = &batch;
8787
88+ int width = _overlayFramebuffer->getWidth();
89+ int height = _overlayFramebuffer->getHeight();
90+
91+ batch.setViewportTransform(glm::ivec4(0, 0, width, height));
92+
8893 // 1) bind the framebuffer
8994 batch.setFramebuffer(_overlayFramebuffer);
9095
@@ -93,13 +98,7 @@ void ApplicationOverlay::renderOverlay(RenderArgs* renderArgs) { · 2 unmodified lines
9398 glm::vec4 color { 0.0f, 0.0f, 0.0f, 0.0f };
9499 float depth = 1.0f;
95100 int stencil = 0;
96− batch.clearFramebuffer(gpu::Framebuffer::BUFFER_COLORS | gpu::Framebuffer::BUFFER_DEPTH, color, depth, stencil);
97− //batch.clearColorFramebuffer(_overlayFramebuffer->getBufferMask(), glm::vec4(0.0f, 0.0f, 0.0f, 0.0f));
98−
99− int width = _overlayFramebuffer->getWidth();
100− int height = _overlayFramebuffer->getHeight();
101−
102− batch.setViewportTransform(glm::ivec4(0, 0, width, height));
101+ batch.clearFramebuffer(gpu::Framebuffer::BUFFER_COLOR0 | gpu::Framebuffer::BUFFER_DEPTH, color, depth, stencil);
103102
104103 // Now render the overlay components together into a single texture
105104 renderOverlays(renderArgs); // renders Scripts Overlay and AudioScope