Only update the shader point size in OpenGL ES 2 when it's been modified, rather than before every draw.

This commit is contained in:
Alex Szpakowski
2015-03-17 17:24:45 -03:00
parent 4a8e5bd4db
commit a36dbc3d49
3 changed files with 17 additions and 1 deletions
+3
View File
@@ -182,6 +182,7 @@ public:
bool sendBuiltinMatrix(BuiltinUniform builtin, int size, const GLfloat *m, int count);
bool sendBuiltinFloat(BuiltinUniform builtin, int size, const GLfloat *m, int count);
void checkSetScreenParams();
void checkSetPointSize(float size);
const std::map<std::string, Object *> &getBoundRetainables() const;
@@ -250,6 +251,8 @@ private:
Canvas *lastCanvas;
OpenGL::Viewport lastViewport;
float lastPointSize;
// Counts total number of textures bound to each texture unit in all shaders
static std::vector<int> textureCounters;