aboutsummaryrefslogtreecommitdiff
path: root/src/libjin/render/jsl.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libjin/render/jsl.h')
-rw-r--r--src/libjin/render/jsl.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/libjin/render/jsl.h b/src/libjin/render/jsl.h
index 35479d3..fc1aa48 100644
--- a/src/libjin/render/jsl.h
+++ b/src/libjin/render/jsl.h
@@ -24,14 +24,12 @@ namespace render
{
glUseProgram(pid);
currentJSLProgram = this;
- currentTextureUnit = 0;
}
static inline void JSLProgram::unuse()
{
glUseProgram(0);
currentJSLProgram = nullptr;
- currentTextureUnit = 0;
}
void sendFloat(const char* name, float number);
@@ -49,14 +47,13 @@ namespace render
private:
+ static JSLProgram* currentJSLProgram;
+
GLuint pid;
std::map<std::string, GLint> texturePool;
- static JSLProgram* currentJSLProgram;
- static GLint currentTextureUnit;
- static GLint maxTextureUnits;
-
+ GLint currentTextureUnit;
GLint getTextureUnit(const std::string& name);
inline void initialize(const char* program);