GLState: Add bound shader program to managed state

Squishes a handful of redundant binds per frame.
This commit is contained in:
Jonas Kulla 2014-01-20 00:57:40 +01:00
parent b729da249b
commit 87c1e376b9
3 changed files with 15 additions and 2 deletions

View file

@ -99,6 +99,11 @@ class GLViewport : public GLProperty<IntRect>
void apply(const IntRect &value);
};
class GLProgram : public GLProperty<unsigned int> /* GLuint */
{
void apply(const unsigned int &value);
};
class GLState
{
@ -109,6 +114,7 @@ public:
GLTexture2D texture2D;
GLBlendMode blendMode;
GLViewport viewport;
GLProgram program;
struct Caps
{