GLState: Add bound shader program to managed state
Squishes a handful of redundant binds per frame.
This commit is contained in:
parent
b729da249b
commit
87c1e376b9
3 changed files with 15 additions and 2 deletions
src
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue