Browse Source

gpu: move SetClearColor and SetClearDepth to the Renderer and RenderContext

classes instead of Video.
master
Sam Hocevar 11 years ago
parent
commit
b79214e9ad
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      neercs/video/render.cpp

+ 2
- 2
neercs/video/render.cpp View File

@@ -1457,8 +1457,8 @@ void Render::Draw2D()
glEnable(GL_TEXTURE_2D); glEnable(GL_TEXTURE_2D);
glBlendFunc(GL_SRC_COLOR, GL_DST_ALPHA); 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); Video::Clear(ClearMask::Color | ClearMask::Depth);


m_txt_screen->Blit(border, canvas_size); m_txt_screen->Blit(border, canvas_size);


Loading…
Cancel
Save