Fix refactoring issue in gl2shader.h.

Oops, I accidentally changed the order of fields where I shouldn't
have; add a comment to avoid this in the future.
This commit is contained in:
whitequark 2016-12-02 11:13:15 +00:00
parent 47244c5e89
commit b975380493

View File

@ -25,6 +25,10 @@
namespace SolveSpace {
//-----------------------------------------------------------------------------
// Floating-point data structures; the layout of these must match shaders
//-----------------------------------------------------------------------------
class Vector2f {
public:
float x, y;
@ -45,7 +49,7 @@ public:
class Vector4f {
public:
float w, x, y, z;
float x, y, z, w;
static Vector4f From(float x, float y, float z, float w);
static Vector4f From(const Vector &v, float w);
@ -53,6 +57,10 @@ public:
static Vector4f From(const RgbaColor &c);
};
//-----------------------------------------------------------------------------
// Wrappers for our shaders
//-----------------------------------------------------------------------------
class Shader {
public:
GLuint program;