From b0b1a401d1f211de755dfbbdb270e255531e76ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Thu, 23 Feb 2012 23:58:24 +0100 Subject: [PATCH] Counting attributes from 0, not from 1. Caused awesome black screen on AMD cards. --- src/Shaders/PhongShader.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Shaders/PhongShader.h b/src/Shaders/PhongShader.h index 2ef8073c0..2e347b26a 100644 --- a/src/Shaders/PhongShader.h +++ b/src/Shaders/PhongShader.h @@ -28,8 +28,8 @@ class PhongShader: public AbstractShaderProgram { public: /** @brief Attribute */ enum Attribute { - Vertex = 1, /**< @brief Vertex position (four-component vector) */ - Normal = 2 /**< @brief Normal direction (three-component vector) */ + Vertex = 0, /**< @brief Vertex position (four-component vector) */ + Normal = 1 /**< @brief Normal direction (three-component vector) */ }; /** @brief Constructor */