projects
/
profile
/
ivi
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f534c13
)
mesa: fix error handling for glEvalMesh1/2D
author
Yuanhan Liu
<yuanhan.liu@linux.intel.com>
Mon, 19 Sep 2011 07:02:58 +0000
(15:02 +0800)
committer
Brian Paul
<brianp@vmware.com>
Mon, 19 Sep 2011 14:11:51 +0000
(08:11 -0600)
According man page, trigger error when calling glEvalMesh1/2D inside
glBegin/glEnd.
Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
Signed-off-by: Brian Paul <brianp@vmware.com>
src/mesa/main/api_noop.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/api_noop.c
b/src/mesa/main/api_noop.c
index
7d3d332
..
c4ac95c
100644
(file)
--- a/
src/mesa/main/api_noop.c
+++ b/
src/mesa/main/api_noop.c
@@
-892,6
+892,8
@@
_mesa_noop_EvalMesh1( GLenum mode, GLint i1, GLint i2 )
GLfloat u, du;
GLenum prim;
+ ASSERT_OUTSIDE_BEGIN_END(ctx);
+
switch (mode) {
case GL_POINT:
prim = GL_POINTS;
@@
-930,6
+932,8
@@
_mesa_noop_EvalMesh2( GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2 )
GLfloat u, du, v, dv, v1, u1;
GLint i, j;
+ ASSERT_OUTSIDE_BEGIN_END(ctx);
+
switch (mode) {
case GL_POINT:
case GL_LINE: