[Mesa-dev] [PATCH 5/5] mesa/clear: remove old comments
Dave Airlie
airlied at gmail.com
Mon Sep 12 05:17:31 PDT 2011
From: Dave Airlie <airlied at redhat.com>
Signed-off-by: Dave Airlie <airlied at redhat.com>
---
src/mesa/main/clear.c | 16 ----------------
1 files changed, 0 insertions(+), 16 deletions(-)
diff --git a/src/mesa/main/clear.c b/src/mesa/main/clear.c
index cec0a57..3277a37 100644
--- a/src/mesa/main/clear.c
+++ b/src/mesa/main/clear.c
@@ -125,10 +125,6 @@ _mesa_ClearColorIiEXT(GLint r, GLint g, GLint b, GLint a)
return; /* no change */
FLUSH_VERTICES(ctx, _NEW_COLOR);
-
- /* XXX we should eventually have a float/int/uint union for
- * the ctx->Color.ClearColor state.
- */
ctx->Color._ClearColorType = GL_INT;
COPY_4V(ctx->Color.ClearColorUnclamped.i, tmp);
@@ -159,10 +155,6 @@ _mesa_ClearColorIuiEXT(GLuint r, GLuint g, GLuint b, GLuint a)
return; /* no change */
FLUSH_VERTICES(ctx, _NEW_COLOR);
-
- /* XXX we should eventually have a float/int/uint union for
- * the ctx->Color.ClearColor state.
- */
ctx->Color._ClearColorType = GL_UNSIGNED_INT;
COPY_4V(ctx->Color.ClearColorUnclamped.ui, tmp);
@@ -384,10 +376,6 @@ _mesa_ClearBufferiv(GLenum buffer, GLint drawbuffer, const GLint *value)
return;
}
else if (mask) {
- /* XXX note: we're putting the integer clear values into the
- * floating point state var. This will not always work. We'll
- * need a new ctx->Driver.ClearBuffer() hook....
- */
union gl_clear_color clearSave;
GLenum clearColorTypeSave;
@@ -446,10 +434,6 @@ _mesa_ClearBufferuiv(GLenum buffer, GLint drawbuffer, const GLuint *value)
return;
}
else if (mask) {
- /* XXX note: we're putting the uint clear values into the
- * floating point state var. This will not always work. We'll
- * need a new ctx->Driver.ClearBuffer() hook....
- */
union gl_clear_color clearSave;
GLenum clearColorTypeSave;
--
1.7.6
More information about the mesa-dev
mailing list