Partial implementation of glGetBooleanv

I used glGetBooleanv for GL_DEPTH_WRITEMASK and GL_COLOR_WRITEMASK, so I added implementation of just that