summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2005-09-19 20:32:21 +0000
committerBrian Paul <[email protected]>2005-09-19 20:32:21 +0000
commitc650bb0b7d2f8b1c9823001ab2012c4cbecfbc6c (patch)
treeb335593ba6b2e03e40fa32f80cb362dd1c3d9005
parent02237f447f99478fe8d593ee645ade05d05f24f4 (diff)
s/GLchan/GLubyte/, fix error string, add comment
-rw-r--r--src/mesa/main/renderbuffer.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mesa/main/renderbuffer.c b/src/mesa/main/renderbuffer.c
index d678f9c6749..c6f1171fe24 100644
--- a/src/mesa/main/renderbuffer.c
+++ b/src/mesa/main/renderbuffer.c
@@ -933,7 +933,7 @@ soft_renderbuffer_storage(GLcontext *ctx, struct gl_renderbuffer *rb,
rb->ComponentSizes[1] = 8 * sizeof(GLubyte);
rb->ComponentSizes[2] = 8 * sizeof(GLubyte);
rb->ComponentSizes[3] = 0;
- pixelSize = 3 * sizeof(GLchan);
+ pixelSize = 3 * sizeof(GLubyte);
break;
case GL_RGBA:
case GL_RGBA2:
@@ -1441,6 +1441,7 @@ _mesa_delete_renderbuffer(struct gl_renderbuffer *rb)
* Allocate a software-based renderbuffer. This is called via the
* ctx->Driver.NewRenderbuffer() function when the user creates a new
* renderbuffer.
+ * This would not be used for hardware-based renderbuffers.
*/
struct gl_renderbuffer *
_mesa_new_soft_renderbuffer(GLcontext *ctx, GLuint name)
@@ -1541,7 +1542,7 @@ _mesa_add_color_index_renderbuffers(GLcontext *ctx, struct gl_framebuffer *fb,
if (indexBits > 8) {
_mesa_problem(ctx,
- "Unsupported bit depth in _mesa_add_color_renderbuffers");
+ "Unsupported bit depth in _mesa_add_color_index_renderbuffers");
return GL_FALSE;
}