fix typo, remove dead code
authorBrian Paul <brian.paul@tungstengraphics.com>
Sun, 14 May 2006 15:56:07 +0000 (15:56 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Sun, 14 May 2006 15:56:07 +0000 (15:56 +0000)
src/mesa/drivers/osmesa/osmesa.c

index d88a55056f964466493baaf0641ba390875d78ea..190bbf8c76b5b3be7b6df1be9925e920a19597f2 100644 (file)
@@ -702,7 +702,7 @@ osmesa_renderbuffer_storage(GLcontext *ctx, struct gl_renderbuffer *rb,
 
 
 /**
- * Allocate a new renderbuffer tpo describe the user-provided color buffer.
+ * Allocate a new renderbuffer to describe the user-provided color buffer.
  */
 static struct gl_renderbuffer *
 new_osmesa_renderbuffer(GLenum format)
@@ -1195,7 +1195,6 @@ OSMesaGetDepthBuffer( OSMesaContext c, GLint *width, GLint *height,
       rb = c->gl_buffer->Attachment[BUFFER_DEPTH].Renderbuffer;
 
    if (!rb || !rb->Data) {
-      /*if ((!c->gl_buffer) || (!c->gl_buffer->DepthBuffer)) {*/
       *width = 0;
       *height = 0;
       *bytesPerValue = 0;