From cd4fce89263e78a622ea698c4bb41b0f3dd096da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sat, 3 Mar 2012 03:21:23 +0100 Subject: [PATCH] AbstractShaderProgram documentation: number attributes from 0. According to my observations (and crazy bugfixing madness) ATI cards don't support anything else than attributes numbered from 0 with successive numbers. Also fixed (pedantic) comma at the end of enum. --- src/AbstractShaderProgram.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/AbstractShaderProgram.h b/src/AbstractShaderProgram.h index 87c808822..b993db513 100644 --- a/src/AbstractShaderProgram.h +++ b/src/AbstractShaderProgram.h @@ -35,9 +35,9 @@ functions and properties: attribute is bound, for example: @code enum Attribute { - Vertex = 1, - Normal = 2, - TextureCoords = 3, + Vertex = 0, + Normal = 1, + TextureCoords = 2 }; @endcode See also bindAttribute().