rb->PutMonoRow = put_mono_row_ushort;
rb->PutValues = put_values_ushort;
rb->PutMonoValues = put_mono_values_ushort;
- rb->DepthBits = 8 * sizeof(GLushort);
+ /*rb->DepthBits not set here */
pixelSize = sizeof(GLushort);
break;
case GL_DEPTH_COMPONENT24:
rb->PutMonoRow = put_mono_row_uint;
rb->PutValues = put_values_uint;
rb->PutMonoValues = put_mono_values_uint;
- rb->DepthBits = 8 * sizeof(GLuint);
+ /* rb->DepthBits not set here */
pixelSize = sizeof(GLuint);
break;
case GL_COLOR_INDEX8_EXT:
}
+
/**********************************************************************/
/**********************************************************************/
/**********************************************************************/
else {
rb->InternalFormat = GL_DEPTH_COMPONENT32;
}
+ rb->DepthBits = depthBits;
rb->AllocStorage = soft_renderbuffer_storage;
_mesa_add_renderbuffer(fb, BUFFER_DEPTH, rb);