projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d03dde1
)
mesa: call _mesa_valid_to_render()
author
Brian Paul
<brianp@vmware.com>
Fri, 14 Aug 2009 16:48:31 +0000
(10:48 -0600)
committer
Brian Paul
<brianp@vmware.com>
Fri, 14 Aug 2009 17:27:33 +0000
(11:27 -0600)
src/mesa/main/api_validate.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/api_validate.c
b/src/mesa/main/api_validate.c
index 0c6d9af4a8d6c7df5003ca8648b2db941ff840e7..2df4f173893af28e2838c06aae55bb466f91805a 100644
(file)
--- a/
src/mesa/main/api_validate.c
+++ b/
src/mesa/main/api_validate.c
@@
-97,14
+97,12
@@
max_buffer_index(GLcontext *ctx, GLuint count, GLenum type,
/**
- * Check if OK to
render by examining framebuffer status and vertex array
s.
+ * Check if OK to
draw arrays/element
s.
*/
static GLboolean
check_valid_to_render(GLcontext *ctx, const char *function)
{
- if (ctx->DrawBuffer->_Status != GL_FRAMEBUFFER_COMPLETE_EXT) {
- _mesa_error(ctx, GL_INVALID_FRAMEBUFFER_OPERATION_EXT,
- "%s(incomplete framebuffer)", function);
+ if (!_mesa_valid_to_render(ctx, function)) {
return GL_FALSE;
}