Browse Source

gpu: remove support for the accumulation buffer, it's deprecated anyway.

legacy
Sam Hocevar sam 12 years ago
parent
commit
9eb88af17c
2 changed files with 3 additions and 5 deletions
  1. +0
    -3
      src/video.cpp
  2. +3
    -2
      src/video.h

+ 0
- 3
src/video.cpp View File

@@ -233,7 +233,6 @@ void Video::SetClearDepth(float f)
void Video::Clear(ClearMask m)
{
#if defined USE_D3D9 || defined _XBOX
/* Note: D3D9 doesn't appear to support the accumulation buffer. */
int mask = 0;
if (m & ClearMask::Color)
mask |= D3DCLEAR_TARGET;
@@ -255,8 +254,6 @@ void Video::Clear(ClearMask m)
mask |= GL_COLOR_BUFFER_BIT;
if (m & ClearMask::Depth)
mask |= GL_DEPTH_BUFFER_BIT;
if (m & ClearMask::Accum)
mask |= GL_ACCUM_BUFFER_BIT;
if (m & ClearMask::Stencil)
mask |= GL_STENCIL_BUFFER_BIT;
glClear(mask);


+ 3
- 2
src/video.h View File

@@ -26,10 +26,11 @@ struct ClearMask
{
enum Value
{
/* Note: D3D9 doesn't appear to support the accumulation buffer,
* and it is a deprecated OpenGL feature. No reasone to support it. */
Color = 1 << 0,
Depth = 1 << 1,
Accum = 1 << 2,
Stencil = 1 << 3,
Stencil = 1 << 2,

All = 0xffffffff
}


Loading…
Cancel
Save