From 99160755697f922b16a038a839657a2a59e7c5a2 Mon Sep 17 00:00:00 2001 From: Jason Mitchell Date: Thu, 28 Dec 2023 08:15:50 -0800 Subject: [PATCH] Catch the specific error, rather than generic Exception (which the error doesn't seem to subclass anyway) (#88) --- src/main/java/net/coderbot/iris/gl/IrisRenderSystem.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/net/coderbot/iris/gl/IrisRenderSystem.java b/src/main/java/net/coderbot/iris/gl/IrisRenderSystem.java index b00f3ad0d..f95f39f30 100644 --- a/src/main/java/net/coderbot/iris/gl/IrisRenderSystem.java +++ b/src/main/java/net/coderbot/iris/gl/IrisRenderSystem.java @@ -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(); }