projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e9ae4ca
)
mesa: fix incorrect error code in _mesa_FramebufferTexture1D/3DEXT()
author
Brian Paul
<brianp@vmware.com>
Thu, 18 Aug 2011 17:51:48 +0000
(11:51 -0600)
committer
Brian Paul
<brianp@vmware.com>
Thu, 18 Aug 2011 17:51:53 +0000
(11:51 -0600)
The spec says GL_INVALID_OPERATION is generated when texture!=0 and
textarget is not a legal value. We had this right for the 2D function.
src/mesa/main/fbobject.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/fbobject.c
b/src/mesa/main/fbobject.c
index 82eb7fb718ddb8283732652fab3dd59425286e63..7646f9bdb03a64866ddf93f5a16c8807b7f8846e 100644
(file)
--- a/
src/mesa/main/fbobject.c
+++ b/
src/mesa/main/fbobject.c
@@
-1985,7
+1985,7
@@
_mesa_FramebufferTexture1DEXT(GLenum target, GLenum attachment,
GET_CURRENT_CONTEXT(ctx);
if ((texture != 0) && (textarget != GL_TEXTURE_1D)) {
- _mesa_error(ctx, GL_INVALID_
ENUM
,
+ _mesa_error(ctx, GL_INVALID_
OPERATION
,
"glFramebufferTexture1DEXT(textarget)");
return;
}
@@
-2023,7
+2023,7
@@
_mesa_FramebufferTexture3DEXT(GLenum target, GLenum attachment,
GET_CURRENT_CONTEXT(ctx);
if ((texture != 0) && (textarget != GL_TEXTURE_3D)) {
- _mesa_error(ctx, GL_INVALID_
ENUM
,
+ _mesa_error(ctx, GL_INVALID_
OPERATION
,
"glFramebufferTexture3DEXT(textarget)");
return;
}