projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ff60e3f
)
mesa: Return 0 for cube map face of non-cubemap framebuffer attachments.
author
Eric Anholt
<eric@anholt.net>
Fri, 25 Jul 2008 19:40:16 +0000
(12:40 -0700)
committer
Eric Anholt
<eric@anholt.net>
Fri, 25 Jul 2008 19:40:49 +0000
(12:40 -0700)
Fixes some oglconform fbo testcases.
src/mesa/main/fbobject.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/fbobject.c
b/src/mesa/main/fbobject.c
index 8e9948cb45d330cd7f90de38c68008a2d0197e46..cecc89ac38d0c0b7636594bb741d7a7ef1747773 100644
(file)
--- a/
src/mesa/main/fbobject.c
+++ b/
src/mesa/main/fbobject.c
@@
-1493,7
+1493,10
@@
_mesa_GetFramebufferAttachmentParameterivEXT(GLenum target, GLenum attachment,
return;
case GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE_EXT:
if (att->Type == GL_TEXTURE) {
- *params = GL_TEXTURE_CUBE_MAP_POSITIVE_X + att->CubeMapFace;
+ if (att->Texture->Target == GL_TEXTURE_CUBE_MAP)
+ *params = GL_TEXTURE_CUBE_MAP_POSITIVE_X + att->CubeMapFace;
+ else
+ *params = 0;
}
else {
_mesa_error(ctx, GL_INVALID_ENUM,