Skip to content

Commit

Permalink
Make sure the method returns an int
Browse files Browse the repository at this point in the history
  • Loading branch information
Caedis committed Nov 14, 2023
1 parent b11d78e commit ed05c53
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public byte[] transform(String name, String transformedName, byte[] basicClass)
final ClassNode cn = new ClassNode(ASM5);
cr.accept(cn, 0);
for (MethodNode m : cn.methods) {
if ("checkGLError".equals(m.name)) {
if ("checkGLError".equals(m.name) && m.desc.endsWith(")I")) {
LOGGER.info("Removing GL Error Logging: " + m.desc);
final InsnList i = m.instructions;
i.clear();
Expand Down

0 comments on commit ed05c53

Please sign in to comment.