Yes, indeed, I'm getting GL_INVALID_ENUM on checks. This shouldn't be so, right?
glfw init:
void create(Core core, SETTINGS sett){
if (isCreated){
throw new RuntimeException(Context.class + " has Already been created!");
}
if (sett.getScale() != 1 && sett.getScale()% 2 != 0)
throw new RuntimeException("scale must be a power of two!");
scale = sett.getScale();
nativeWidth = sett.getNativeWidth();
nativeHeight = sett.getNativeHeight();
displayWidth = sett.getDisplayWidth();
displayHeight = sett.getDisplayHeight();
trippleBuff = sett.getTripleBuffering();
glfwSetErrorCallback(errorCallback = errorCallbackPrint(System.err));
if ( glfwInit() != GL11.GL_TRUE )
throw new IllegalStateException("Unable to initialize GLFW");
//window hints
glfwDefaultWindowHints();
glfwWindowHint(GLFW_RESIZABLE, GL11.GL_FALSE);
glfwWindowHint(GLFW_VISIBLE, GL11.GL_FALSE);
glfwWindowHint(GLFW_DECORATED, GL11.GL_TRUE);
glfwWindowHint(GLFW_FOCUSED, GL11.GL_FALSE);
glfwWindowHint(GLFW_AUTO_ICONIFY, GL11.GL_FALSE);
glfwWindowHint(GLFW_FLOATING, GL11.GL_FALSE);
//FB hints
glfwWindowHint(GLFW_RED_BITS,

;
glfwWindowHint(GLFW_GREEN_BITS,

;
glfwWindowHint(GLFW_BLUE_BITS,

;
glfwWindowHint(GLFW_ALPHA_BITS,

;
glfwWindowHint(GLFW_DEPTH_BITS,

;
glfwWindowHint(GLFW_STENCIL_BITS,

;
//other hints
glfwWindowHint(GLFW_SAMPLES, 0);
glfwWindowHint(GLFW_REFRESH_RATE, GLFW_DONT_CARE);
glfwWindowHint(GLFW_STEREO, GL11.GL_FALSE);
glfwWindowHint(GLFW_SRGB_CAPABLE,GL11.GL_FALSE);
glfwWindowHint(GLFW_DOUBLE_BUFFER, GL11.GL_TRUE);
glfwWindowHint(GLFW_CLIENT_API, GLFW_OPENGL_API);
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3);
glfwWindowHint(GLFW_CONTEXT_ROBUSTNESS, GLFW_NO_ROBUSTNESS);
glfwWindowHint(GLFW_CONTEXT_RELEASE_BEHAVIOR, GLFW_ANY_RELEASE_BEHAVIOR);
glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GL11.GL_TRUE);
glfwWindowHint(GLFW_OPENGL_DEBUG_CONTEXT, GL11.GL_TRUE);
glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_ANY_PROFILE);
setDisplayModes();
window = glfwCreateWindow(
sett.getDisplayWidth(), sett.getDisplayHeight(),
sett.getWindowName(),
sett.getFullScreen(fullScreenModes) ? glfwGetPrimaryMonitor() : NULL, NULL);
if ( window == NULL ){
throw new RuntimeException("Failed to create the GLFW window");
}
//get real width and height
checkDimensions(sett);
// Make the OpenGL context current
glfwMakeContextCurrent(window);
// creates the ContextCapabilities instance and makes the OpenGL
// bindings available for use.
GLContext.createFromCurrent();
glfwSwapInterval(sett.getVSynch() ? 1 : 0);
GlManager.init(sett.getNativeWidth(), sett.getNativeHeight());
renderer = new Renderer(sett.getRenderMode());
input = new Input(core, window, sett);
soundManager = new SoundManager();
isCreated = true;
printout(sett);
}
opengl init:
static void init(int viewPortWidth, int viewPortHeight){
GLContext.createFromCurrent();
glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
glEnable(GL_BLEND);
setBlendNormal();
glDisable(GL_DEPTH_TEST);
glEnable(GL_STENCIL_TEST);
glClearStencil(~0);
setViewPort(viewPortWidth, viewPortHeight);
System.out.println("---OPEN_GL---");
System.out.println("FB stencil Bits: " + glGetInteger(GL_STENCIL_BITS));
System.out.println("FB Red Bits: " + glGetInteger(GL_RED_BITS));
System.out.println("FB Green Bits: " + glGetInteger(GL_GREEN_BITS));
System.out.println("FB Blue Bits: " + glGetInteger(GL_BLUE_BITS));
System.out.println("FB Alpha Bits: " + glGetInteger(GL_ALPHA_BITS));
System.out.println("OpenGL Version: " + glGetString(GL_VERSION));
System.out.println("glRenderer: " + glGetString(GL_VENDOR) + ", " + glGetString(GL_RENDERER));
ContextCapabilities c = org.lwjgl.opengl.GLContext.createFromCurrent().getCapabilities();
System.out.println("Supported Shader Attributes: " + glGetInteger(GL20.GL_MAX_VERTEX_ATTRIBS));
System.out.println("Supported Shader Uniforms: " + glGetInteger(GL20.GL_MAX_FRAGMENT_UNIFORM_COMPONENTS));
if (!c.GL_ARB_shader_objects && c.GL_ARB_vertex_shader && c.GL_ARB_fragment_shader)
throw new IllegalStateException("shaders arent Supported. Get openGl 2.0 or later!");
}