瀏覽代碼

gpu: remove FrameBuffer::Clear(), it's not really useful.

legacy
Sam Hocevar sam 12 年之前
父節點
當前提交
95d26d18dd
共有 1 個檔案被更改,包括 0 行新增19 行删除
  1. +0
    -19
      src/gpu/framebuffer.cpp

+ 0
- 19
src/gpu/framebuffer.cpp 查看文件

@@ -116,25 +116,6 @@ int FrameBuffer::GetTexture() const
#endif
}

void FrameBuffer::Clear(vec4 color)
{
#if defined USE_D3D9 || defined _XBOX
#elif !defined __CELLOS_LV2__ && !defined __ANDROID__
glClearColor(color.r, color.g, color.b, color.a);
glClear(GL_COLOR_BUFFER_BIT);
#endif
}

void FrameBuffer::Clear(vec4 color, float depth)
{
#if defined USE_D3D9 || defined _XBOX
#elif !defined __CELLOS_LV2__ && !defined __ANDROID__
glClearColor(color.r, color.g, color.b, color.a);
//glClearDepthf(depth);
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
#endif
}

void FrameBuffer::Bind()
{
#if defined USE_D3D9 || defined _XBOX


Loading…
取消
儲存