some new comments
authorBrian Paul <brian.paul@tungstengraphics.com>
Fri, 19 May 2006 17:31:09 +0000 (17:31 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Fri, 19 May 2006 17:31:09 +0000 (17:31 +0000)
src/mesa/swrast/s_texstore.c

index a9da77ed65b38710b53e6703128ad23f5a0e05f8..e9f4faeed00500822daa24df5ef75fe3cdc42ab7 100644 (file)
@@ -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,