summaryrefslogtreecommitdiff
path: root/src/mesa/main/api_validate.c
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2009-08-14 10:48:31 -0600
committerBrian Paul <brianp@vmware.com>2009-08-14 11:27:33 -0600
commitb6e5600bd460245afef605dbfbcf6650ff677dcb (patch)
tree27f3bb5e09c169d57f1ca3fc1e6c74d8c6bd7824 /src/mesa/main/api_validate.c
parentd03dde16ebb5ab7f109c8ff6d710d54d50d4fa8f (diff)
mesa: call _mesa_valid_to_render()
Diffstat (limited to 'src/mesa/main/api_validate.c')
-rw-r--r--src/mesa/main/api_validate.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mesa/main/api_validate.c b/src/mesa/main/api_validate.c
index 0c6d9af4a8..2df4f17389 100644
--- 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 arrays.
+ * Check if OK to draw arrays/elements.
*/
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;
}