mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-22 22:33:43 -07:00
render at least the first texture, still need to figure out the second
one
This commit is contained in:
parent
9e082fd92f
commit
ba882b212d
1 changed files with 1 additions and 1 deletions
|
@ -566,7 +566,7 @@ static struct ShaderProgram* gfx_opengl_create_and_load_new_shader(uint64_t shad
|
|||
GLint sampler_location = glGetUniformLocation(shader_program, "uTex0");
|
||||
GLint uniform_location_0 = glGetUniformLocation(shader_program, "texSize0");
|
||||
glUniform1i(sampler_location, 0);
|
||||
glUniform2f(uniform_location_0, opengl_tex[0].size[0], opengl_tex[0].size[1]);
|
||||
glUniform2f(uniform_location_0, opengl_tex[opengl_curtex].size[0], opengl_tex[opengl_curtex].size[1]);
|
||||
}
|
||||
if (cc_features.used_textures[1]) {
|
||||
GLint sampler_location = glGetUniformLocation(shader_program, "uTex1");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue