浏览代码

gpu: move SetClearColor and SetClearDepth to the Renderer and RenderContext

classes instead of Video.
master
Sam Hocevar 11 年前
父节点
当前提交
b79214e9ad
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      neercs/video/render.cpp

+ 2
- 2
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);


正在加载...
取消
保存