From 95d26d18dd70874e93a431d5d4c275e58723fc8d Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Sun, 17 Jun 2012 07:35:36 +0000 Subject: [PATCH] gpu: remove FrameBuffer::Clear(), it's not really useful. --- src/gpu/framebuffer.cpp | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/src/gpu/framebuffer.cpp b/src/gpu/framebuffer.cpp index 70b58b88..92779780 100644 --- a/src/gpu/framebuffer.cpp +++ b/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