projects
/
freeglut
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa471c2
)
fixed the unreachable GL error check in getAttribOrUniformLocation in demos/shapes...
author
John Tsiombikas
<nuclear@member.fsf.org>
Sun, 19 Oct 2014 23:22:53 +0000
(23:22 +0000)
committer
John Tsiombikas
<nuclear@member.fsf.org>
Sun, 19 Oct 2014 23:22:53 +0000
(23:22 +0000)
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1722
7f0cb862
-5218-0410-a997-
914c9d46530a
progs/demos/shapes/shapes.c
patch
|
blob
|
history
diff --git
a/progs/demos/shapes/shapes.c
b/progs/demos/shapes/shapes.c
index
d132777
..
8d69fc0
100644
(file)
--- a/
progs/demos/shapes/shapes.c
+++ b/
progs/demos/shapes/shapes.c
@@
-286,6
+286,7
@@
GLint getAttribOrUniformLocation(const char* name, GLuint program, GLboolean isA
fprintf(stderr, "Warning: Could not bind attrib %s\n", name);
}
+ checkError ("getAttribOrUniformLocation");
return attrib;
}
else
@@
-296,9
+297,9
@@
GLint getAttribOrUniformLocation(const char* name, GLuint program, GLboolean isA
fprintf(stderr, "Warning: Could not bind uniform %s\n", name);
}
+ checkError ("getAttribOrUniformLocation");
return uniform;
}
- checkError ("getAttribOrUniformLocation");
}
GLuint program;