From: Brian Paul Date: Fri, 14 Aug 2009 16:48:31 +0000 (-0600) Subject: mesa: call _mesa_valid_to_render() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b6e5600bd460245afef605dbfbcf6650ff677dcb;p=mesa.git mesa: call _mesa_valid_to_render() --- diff --git a/src/mesa/main/api_validate.c b/src/mesa/main/api_validate.c index 0c6d9af4a8d..2df4f173893 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; }