summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2002-12-03 00:05:48 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2002-12-03 00:05:48 +0000
commit2a7243481a40dee437d4a95ac39b84e550aa98f6 (patch)
tree7828cc879c0b3f5b9ddcb52f7246db24dbafbf53 /src
parente7cf569475a2baed8f372d81657fc3516666d6ac (diff)
added GL_DEPTH_COMPONENT to two assertions
Diffstat (limited to 'src')
-rw-r--r--src/mesa/main/texstore.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/mesa/main/texstore.c b/src/mesa/main/texstore.c
index 1803eeb232..64568a9e69 100644
--- a/src/mesa/main/texstore.c
+++ b/src/mesa/main/texstore.c
@@ -1,4 +1,4 @@
-/* $Id: texstore.c,v 1.48 2002/11/20 21:39:39 brianp Exp $ */
+/* $Id: texstore.c,v 1.49 2002/12/03 00:05:48 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -193,7 +193,8 @@ transfer_teximage(GLcontext *ctx, GLuint dimensions,
texDestFormat == GL_LUMINANCE_ALPHA ||
texDestFormat == GL_ALPHA ||
texDestFormat == GL_RGB ||
- texDestFormat == GL_RGBA);
+ texDestFormat == GL_RGBA ||
+ texDestFormat == GL_DEPTH_COMPONENT);
ASSERT(texDestAddr);
ASSERT(srcWidth >= 1);
ASSERT(srcHeight >= 1);
@@ -479,7 +480,8 @@ _mesa_transfer_teximage(GLcontext *ctx, GLuint dimensions,
baseInternalFormat == GL_LUMINANCE_ALPHA ||
baseInternalFormat == GL_ALPHA ||
baseInternalFormat == GL_RGB ||
- baseInternalFormat == GL_RGBA);
+ baseInternalFormat == GL_RGBA ||
+ baseInternalFormat == GL_DEPTH_COMPONENT);
if (transferOps & IMAGE_CONVOLUTION_BIT) {
_mesa_adjust_image_for_convolution(ctx, dimensions, &postConvWidth,