Skip to content

Commit

Permalink
[OpenGL] Fix compute texture bindings
Browse files Browse the repository at this point in the history
Fixes #851
  • Loading branch information
RobDangerous committed Feb 6, 2024
1 parent d480ddb commit 32fe1fc
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,11 @@ void kinc_g4_set_compute_shader(kinc_g4_compute_shader *shader) {
#ifdef HAS_COMPUTE
glUseProgram(shader->impl._programid);
glCheckErrors();

for (int index = 0; index < shader->impl.textureCount; ++index) {
glUniform1i(shader->impl.textureValues[index], index);
glCheckErrors();
}
#endif
}

Expand Down

0 comments on commit 32fe1fc

Please sign in to comment.