projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d29349
)
mesa: Allow color renderbuffers besides just RGB and RGBA.
author
Eric Anholt
<eric@anholt.net>
Mon, 3 Jan 2011 02:01:39 +0000
(18:01 -0800)
committer
Eric Anholt
<eric@anholt.net>
Mon, 3 Jan 2011 21:22:38 +0000
(13:22 -0800)
We did so already for textures to do ARB_fbo's
GL_ALPHA/GL_LUMINANCE/etc. support and for ARB_texture_rg's GL_RED and
GL_RG, but this path was missed.
src/mesa/main/fbobject.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/fbobject.c
b/src/mesa/main/fbobject.c
index 975063d0d78584719fcdde282008b8d78cb38554..b4101ddcd5345bc4cdd1da96626836cc7b2bb25e 100644
(file)
--- a/
src/mesa/main/fbobject.c
+++ b/
src/mesa/main/fbobject.c
@@
-542,8
+542,7
@@
test_attachment_completeness(const struct gl_context *ctx, GLenum format,
return;
}
if (format == GL_COLOR) {
- if (baseFormat != GL_RGB &&
- baseFormat != GL_RGBA) {
+ if (!is_legal_color_format(ctx, baseFormat)) {
att_incomplete("bad renderbuffer color format");
att->Complete = GL_FALSE;
return;