projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b0f681b
)
mesa: Follow GL spec to draw DEPTH_COMPONENT pixels when
author
Xiang, Haihao
<haihao.xiang@intel.com>
Mon, 17 Mar 2008 08:47:42 +0000
(16:47 +0800)
committer
Xiang, Haihao
<haihao.xiang@intel.com>
Mon, 17 Mar 2008 08:47:42 +0000
(16:47 +0800)
there's no depth buffer. Fix bug #11580
src/mesa/main/drawpix.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/drawpix.c
b/src/mesa/main/drawpix.c
index c82abccc41ace331851fef84de889e5ad310bf2d..a001cf172c7de6d599598a5fcbdcb56b86f41260 100644
(file)
--- a/
src/mesa/main/drawpix.c
+++ b/
src/mesa/main/drawpix.c
@@
-105,8
+105,7
@@
error_check_format_type(GLcontext *ctx, GLenum format, GLenum type,
}
break;
case GL_DEPTH_COMPONENT:
- if ((drawing && !_mesa_dest_buffer_exists(ctx, format)) ||
- (!drawing && !_mesa_source_buffer_exists(ctx, format))) {
+ if (!drawing && !_mesa_source_buffer_exists(ctx, format)) {
_mesa_error(ctx, GL_INVALID_OPERATION,
"gl%sPixels(no depth buffer)", readDraw);
return GL_TRUE;