瀏覽代碼

gpu: move Video::Clear to Renderer::Clear.

master
Sam Hocevar 11 年之前
父節點
當前提交
1ead8498b0
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. +3
    -3
      neercs/video/render.cpp

+ 3
- 3
neercs/video/render.cpp 查看文件

@@ -1452,12 +1452,12 @@ void Render::Draw2D()

RenderContext rc;
rc.SetBlendFunc(BlendFunc::SrcColor, BlendFunc::DstAlpha);
rc.SetClearColor(vec4(0.0f, 0.0f, 0.0f, 1.0f));
rc.SetClearDepth(1.0f); // set depth buffer

glEnable(GL_TEXTURE_2D);

rc.SetClearColor(vec4(0.0f, 0.0f, 0.0f, 1.0f));
rc.SetClearDepth(1.0f); // set depth buffer
Video::Clear(ClearMask::Color | ClearMask::Depth);
g_renderer->Clear(ClearMask::Color | ClearMask::Depth);

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


Loading…
取消
儲存