MCPcopy Create free account
hub / github.com/DGVPSH/SlackOpen / getOpenGlVersionString

Method getOpenGlVersionString

src/main/java/net/minecraft/src/Config.java:253–257  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

251 }
252
253 public static String getOpenGlVersionString() {
254 GlVersion glversion = getGlVersion();
255 String s = "" + glversion.getMajor() + "." + glversion.getMinor() + "." + glversion.getRelease();
256 return s;
257 }
258
259 private static GlVersion getGlVersionLwjgl() {
260 return GLContext.getCapabilities().OpenGL44 ? new GlVersion(4, 4) : (GLContext.getCapabilities().OpenGL43 ? new GlVersion(4, 3) : (GLContext.getCapabilities().OpenGL42 ? new GlVersion(4, 2) : (GLContext.getCapabilities().OpenGL41 ? new GlVersion(4, 1) : (GLContext.getCapabilities().OpenGL40 ? new GlVersion(4, 0) : (GLContext.getCapabilities().OpenGL33 ? new GlVersion(3, 3) : (GLContext.getCapabilities().OpenGL32 ? new GlVersion(3, 2) : (GLContext.getCapabilities().OpenGL31 ? new GlVersion(3, 1) : (GLContext.getCapabilities().OpenGL30 ? new GlVersion(3, 0) : (GLContext.getCapabilities().OpenGL21 ? new GlVersion(2, 1) : (GLContext.getCapabilities().OpenGL20 ? new GlVersion(2, 0) : (GLContext.getCapabilities().OpenGL15 ? new GlVersion(1, 5) : (GLContext.getCapabilities().OpenGL14 ? new GlVersion(1, 4) : (GLContext.getCapabilities().OpenGL13 ? new GlVersion(1, 3) : (GLContext.getCapabilities().OpenGL12 ? new GlVersion(1, 2) : (GLContext.getCapabilities().OpenGL11 ? new GlVersion(1, 1) : new GlVersion(1, 0))))))))))))))));

Callers 1

checkOpenGlCapsMethod · 0.95

Calls 4

getGlVersionMethod · 0.95
getMajorMethod · 0.95
getMinorMethod · 0.95
getReleaseMethod · 0.95

Tested by

no test coverage detected