GLDebug: Throw an unchecked exception instead of returning null to enforce a crash when glGetError is not present.

This commit is contained in:
MeFisto94 2020-04-01 19:45:37 +02:00
parent 312fb5bb57
commit 4d81d00f45

View File

@ -134,9 +134,8 @@ public class GLDebug implements InvocationHandler {
new GLDebug(gl, obj) new GLDebug(gl, obj)
); );
} catch (NoSuchMethodException nsme) { } catch (NoSuchMethodException nsme) {
LOG.log(Level.SEVERE, "Could not initialize the proxy because the glGetError method wasn't found!", throw new IllegalStateException("Could not initialize the proxy because the glGetError method wasn't found!",
nsme); nsme);
return null;
} }
} }
} }