From b79214e9ad3b88b8237d6564a66ad4c9ce3e03a2 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Thu, 20 Jun 2013 16:55:23 +0000 Subject: [PATCH] gpu: move SetClearColor and SetClearDepth to the Renderer and RenderContext classes instead of Video. --- neercs/video/render.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/neercs/video/render.cpp b/neercs/video/render.cpp index 78953e4..fbade5a 100644 --- a/neercs/video/render.cpp +++ b/neercs/video/render.cpp @@ -1457,8 +1457,8 @@ void Render::Draw2D() glEnable(GL_TEXTURE_2D); glBlendFunc(GL_SRC_COLOR, GL_DST_ALPHA); - Video::SetClearColor(vec4(0.0f, 0.0f, 0.0f, 1.0f)); - Video::SetClearDepth(1.0f); // set depth buffer + rc.SetClearColor(vec4(0.0f, 0.0f, 0.0f, 1.0f)); + rc.SetClearDepth(1.0f); // set depth buffer Video::Clear(ClearMask::Color | ClearMask::Depth); m_txt_screen->Blit(border, canvas_size);