Skip to content

Commit

Permalink
Catch the specific error, rather than generic Exception (which the er…
Browse files Browse the repository at this point in the history
…ror doesn't seem to subclass anyway) (#88)
  • Loading branch information
mitchej123 authored Dec 28, 2023
1 parent 6624a9a commit 9916075
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/net/coderbot/iris/gl/IrisRenderSystem.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,17 @@ public static void initRenderer() {
}
hasMultibind = Iris.capabilities.OpenGL45;

} catch (Exception ignored) {}
} catch (NoSuchFieldError ignored) {}
try {
if (dsaState == null && Iris.capabilities.GL_ARB_direct_state_access) {
dsaState = new DSAARB();
Iris.logger.info("ARB_direct_state_access detected, enabling DSA.");
}
} catch (Exception ignored) {}
} catch (NoSuchFieldError ignored) {}

try {
hasMultibind |= Iris.capabilities.GL_ARB_multi_bind;
} catch (Exception ignored) {}
} catch (NoSuchFieldError ignored) {}

supportsCompute = supportsCompute();
}
Expand Down

0 comments on commit 9916075

Please sign in to comment.