From: Gunnar Sletta Date: Wed, 15 Jun 2011 08:08:43 +0000 (+0200) Subject: Print out a warning when attributes are enabled X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=4c0f5e2da92e861228abc89e4b9b116803a761ce;p=konrad%2Fqtdeclarative.git Print out a warning when attributes are enabled --- diff --git a/src/declarative/scenegraph/coreapi/qsgrenderer.cpp b/src/declarative/scenegraph/coreapi/qsgrenderer.cpp index dbf704b..cc24cc0 100644 --- a/src/declarative/scenegraph/coreapi/qsgrenderer.cpp +++ b/src/declarative/scenegraph/coreapi/qsgrenderer.cpp @@ -229,6 +229,21 @@ void QSGRenderer::renderScene(const Bindable &bindable) int bindTime = frameTimer.elapsed(); #endif +#ifndef QT_NO_DEBUG + // Sanity check that attribute registers are disabled + { + GLint count; + glGetIntegerv(GL_MAX_VERTEX_ATTRIBS, &count); + GLint enabled; + for (int i=0; i