Skip to content

Commit

Permalink
Fix GL error
Browse files Browse the repository at this point in the history
  • Loading branch information
IMS212 committed Oct 3, 2024
1 parent f53d4c5 commit 2c7ceb1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public ShaderMap(ShaderLoadingMap loadingMap, Function<ShaderSupplier, Boolean>
loadingMap.forAllShaders((key, shader) -> {
if (shader != null) {
if (deletionFunction.apply(shader)) {
GlStateManager.glDeleteShader(shader.id());
GlStateManager.glDeleteProgram(shader.id());
return;
}

Expand Down

0 comments on commit 2c7ceb1

Please sign in to comment.