diff options
| author | aura <nw@moneybot.cc> | 2026-03-14 01:12:57 +0100 |
|---|---|---|
| committer | day <day@national.shitposting.agency> | 2026-03-15 19:20:13 +0100 |
| commit | fed4ed30fa727e528aa4ee3fad1b5123e022c6be (patch) | |
| tree | 0053800c66ee101d4119d4ad6362631391e9647a /src/render | |
| parent | c205cb8ac24c0a34960c41879708e7c25c19a353 (diff) | |
fix textures in 2d render, some bugfix
Diffstat (limited to 'src/render')
| -rw-r--r-- | src/render/gl_2d.cpp | 2 |
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; } |
