summaryrefslogtreecommitdiff
path: root/src/render/gl_2d.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/render/gl_2d.cpp')
-rw-r--r--src/render/gl_2d.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/render/gl_2d.cpp b/src/render/gl_2d.cpp
index bc55cae..0b20212 100644
--- a/src/render/gl_2d.cpp
+++ b/src/render/gl_2d.cpp
@@ -22,7 +22,7 @@ GL_SHADER_PROGRAM* gl_2d_init( GL_DATA* gl, VEC2 screensize, const char* shadern
glUniform4fv( ratio_location, 1, &screen_ratio[0] );
I32 samplers_location = glGetUniformLocation( program->id, "g_samplers" );
- glUniform1iv( samplers_location, 255, SAMPLER_INDICES );
+ glUniform1iv( samplers_location, gl->shader_texture_limit, SAMPLER_INDICES );
return program;
}