projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d09a19b
)
vbo: call _mesa_valid_to_render()
author
Brian Paul
<brianp@vmware.com>
Fri, 14 Aug 2009 17:31:00 +0000
(11:31 -0600)
committer
Brian Paul
<brianp@vmware.com>
Fri, 14 Aug 2009 17:31:00 +0000
(11:31 -0600)
src/mesa/vbo/vbo_exec_array.c
patch
|
blob
|
history
diff --git
a/src/mesa/vbo/vbo_exec_array.c
b/src/mesa/vbo/vbo_exec_array.c
index ddf6ca1e0705b6729dfcc1a4c66918c651bb73a9..4148469ef45d900f11b671c038b48568e9bcdc6b 100644
(file)
--- a/
src/mesa/vbo/vbo_exec_array.c
+++ b/
src/mesa/vbo/vbo_exec_array.c
@@
-489,8
+489,7
@@
vbo_exec_DrawArrays(GLenum mode, GLint start, GLsizei count)
if (ctx->NewState)
_mesa_update_state( ctx );
- if (!vbo_validate_shaders(ctx)) {
- _mesa_error(ctx, GL_INVALID_OPERATION, "glDrawArrays(bad shader)");
+ if (!_mesa_valid_to_render(ctx, "glDrawArrays")) {
return;
}
@@
-604,8
+603,7
@@
vbo_validated_drawrangeelements(GLcontext *ctx, GLenum mode,
if (ctx->NewState)
_mesa_update_state( ctx );
- if (!vbo_validate_shaders(ctx)) {
- _mesa_error(ctx, GL_INVALID_OPERATION, "glDrawRangeElements(bad shader)");
+ if (!_mesa_valid_to_render(ctx, "glDraw[Range]Elements")) {
return;
}