Browse Source

Counting attributes from 0, not from 1.

Caused awesome black screen on AMD cards.
vectorfields
Vladimír Vondruš 14 years ago
parent
commit
b0b1a401d1
  1. 4
      src/Shaders/PhongShader.h

4
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 */

Loading…
Cancel
Save