projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ed7325
)
mesa: fix assertion failure for GL_ALPHA FBOs
author
Marek Olšák
<maraeo@gmail.com>
Tue, 22 Jun 2010 23:39:26 +0000
(
01:39
+0200)
committer
Marek Olšák
<maraeo@gmail.com>
Tue, 22 Jun 2010 23:39:26 +0000
(
01:39
+0200)
src/mesa/main/framebuffer.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/framebuffer.c
b/src/mesa/main/framebuffer.c
index 01f84180af730a258fb5b3950a4c938176639494..56558cfcc1edf43de3b7b247f0343edcd009c217 100644
(file)
--- a/
src/mesa/main/framebuffer.c
+++ b/
src/mesa/main/framebuffer.c
@@
-879,6
+879,7
@@
_mesa_source_buffer_exists(GLcontext *ctx, GLenum format)
return GL_FALSE;
}
ASSERT(_mesa_get_format_bits(ctx->ReadBuffer->_ColorReadBuffer->Format, GL_RED_BITS) > 0 ||
+ _mesa_get_format_bits(ctx->ReadBuffer->_ColorReadBuffer->Format, GL_ALPHA_BITS) > 0 ||
_mesa_get_format_bits(ctx->ReadBuffer->_ColorReadBuffer->Format, GL_INDEX_BITS) > 0);
break;
case GL_DEPTH: