summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2006-05-19 17:31:09 +0000
committerBrian Paul <[email protected]>2006-05-19 17:31:09 +0000
commitcbb19930b3bd902e79e59fe7ca1d1943d72d84b4 (patch)
tree44afd0361b3cae691876d9d586f9474f0b45d2cd /src
parent20e11b233277da7091ef5052f04208e344b05334 (diff)
some new comments
Diffstat (limited to 'src')
-rw-r--r--src/mesa/swrast/s_texstore.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/mesa/swrast/s_texstore.c b/src/mesa/swrast/s_texstore.c
index a9da77ed65b..e9f4faeed00 100644
--- a/src/mesa/swrast/s_texstore.c
+++ b/src/mesa/swrast/s_texstore.c
@@ -304,8 +304,13 @@ _swrast_copy_teximage1d( GLcontext *ctx, GLenum target, GLint level,
}
-/*
+/**
* Fallback for Driver.CopyTexImage2D().
+ *
+ * We implement CopyTexImage by reading the image from the framebuffer
+ * then passing it to the ctx->Driver.TexImage2D() function.
+ *
+ * Device drivers should try to implement direct framebuffer->texture copies.
*/
void
_swrast_copy_teximage2d( GLcontext *ctx, GLenum target, GLint level,
@@ -441,8 +446,11 @@ _swrast_copy_texsubimage1d( GLcontext *ctx, GLenum target, GLint level,
}
-/*
+/**
* Fallback for Driver.CopyTexSubImage2D().
+ *
+ * Read the image from the framebuffer then hand it
+ * off to ctx->Driver.TexSubImage2D().
*/
void
_swrast_copy_texsubimage2d( GLcontext *ctx,