diff options
Diffstat (limited to 'o3d/command_buffer/service/cross/gl/gapi_gl.cc')
-rw-r--r-- | o3d/command_buffer/service/cross/gl/gapi_gl.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/o3d/command_buffer/service/cross/gl/gapi_gl.cc b/o3d/command_buffer/service/cross/gl/gapi_gl.cc index fd5c6d3..345e2384 100644 --- a/o3d/command_buffer/service/cross/gl/gapi_gl.cc +++ b/o3d/command_buffer/service/cross/gl/gapi_gl.cc @@ -403,9 +403,9 @@ void GAPIGL::Clear(unsigned int buffers, glClearColor(color.red, color.green, color.blue, color.alpha); glClearDepth(depth); glClearStencil(stencil); - glClear((buffers & COLOR ? GL_COLOR_BUFFER_BIT : 0) | - (buffers & DEPTH ? GL_DEPTH_BUFFER_BIT : 0) | - (buffers & STENCIL ? GL_STENCIL_BUFFER_BIT : 0)); + glClear((buffers & kColor ? GL_COLOR_BUFFER_BIT : 0) | + (buffers & kDepth ? GL_DEPTH_BUFFER_BIT : 0) | + (buffers & kStencil ? GL_STENCIL_BUFFER_BIT : 0)); CHECK_GL_ERROR(); } |