}
}
-int mapsize(GLenum target __attribute__((unused)))
+int buffersize(GLenum buffer)
{
- // XXX Implement this
- return 1;
+ switch(buffer)
+ {
+ case GL_COLOR: return 4;
+ case GL_DEPTH: return 1;
+ case GL_STENCIL: return 1;
+ default: return 1;
+ }
}