update opengl version to 3.2 on linux and update glsl version to 150
This commit is contained in:
parent
b834dbb451
commit
87d0eb9cf3
|
@ -73,7 +73,7 @@ gl__error_callback(GLenum source, GLenum type, GLuint id, GLenum severity, GLsiz
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
char *gl__header = R"foo(#version 130
|
char *gl__header = R"foo(#version 150
|
||||||
)foo";
|
)foo";
|
||||||
|
|
||||||
char *gl__vertex = R"foo(
|
char *gl__vertex = R"foo(
|
||||||
|
|
|
@ -705,8 +705,8 @@ glx_create_context(GLXFBConfig fb_config){
|
||||||
ctx = glXCreateNewContext(linuxvars.dpy, fb_config, GLX_RGBA_TYPE, 0, True);
|
ctx = glXCreateNewContext(linuxvars.dpy, fb_config, GLX_RGBA_TYPE, 0, True);
|
||||||
} else {
|
} else {
|
||||||
static const int context_attribs[] = {
|
static const int context_attribs[] = {
|
||||||
GLX_CONTEXT_MAJOR_VERSION_ARB, 2,
|
GLX_CONTEXT_MAJOR_VERSION_ARB, 3,
|
||||||
GLX_CONTEXT_MINOR_VERSION_ARB, 1,
|
GLX_CONTEXT_MINOR_VERSION_ARB, 2,
|
||||||
GLX_CONTEXT_PROFILE_MASK_ARB , GLX_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB,
|
GLX_CONTEXT_PROFILE_MASK_ARB , GLX_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB,
|
||||||
#if GL_DEBUG_MODE
|
#if GL_DEBUG_MODE
|
||||||
GLX_CONTEXT_FLAGS_ARB , GLX_CONTEXT_DEBUG_BIT_ARB,
|
GLX_CONTEXT_FLAGS_ARB , GLX_CONTEXT_DEBUG_BIT_ARB,
|
||||||
|
|
Loading…
Reference in New Issue