|
|
@ -134,15 +134,9 @@ int |
|
|
|
main(int argc, char **argv) |
|
|
|
main(int argc, char **argv) |
|
|
|
{ |
|
|
|
{ |
|
|
|
bool pass = true; |
|
|
|
bool pass = true; |
|
|
|
|
|
|
|
XVisualInfo *visinfo; |
|
|
|
dpy = get_display_or_skip(); |
|
|
|
Window win; |
|
|
|
|
|
|
|
GLXFBConfig config; |
|
|
|
if (!epoxy_has_glx_extension(dpy, 0, "GLX_ARB_create_context_profile")) |
|
|
|
|
|
|
|
errx(77, "Test requires GLX_ARB_create_context_profile"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
XVisualInfo *visinfo = get_glx_visual(dpy); |
|
|
|
|
|
|
|
Window win = get_glx_window(dpy, visinfo, false); |
|
|
|
|
|
|
|
GLXFBConfig config = get_fbconfig_for_visinfo(dpy, visinfo); |
|
|
|
|
|
|
|
static const int attribs[] = { |
|
|
|
static const int attribs[] = { |
|
|
|
GLX_CONTEXT_PROFILE_MASK_ARB, |
|
|
|
GLX_CONTEXT_PROFILE_MASK_ARB, |
|
|
|
GLX_CONTEXT_CORE_PROFILE_BIT_ARB, |
|
|
|
GLX_CONTEXT_CORE_PROFILE_BIT_ARB, |
|
|
@ -152,8 +146,17 @@ main(int argc, char **argv) |
|
|
|
2, |
|
|
|
2, |
|
|
|
None |
|
|
|
None |
|
|
|
}; |
|
|
|
}; |
|
|
|
GLXContext ctx = glXCreateContextAttribsARB(dpy, config, NULL, True, |
|
|
|
GLXContext ctx; |
|
|
|
attribs); |
|
|
|
|
|
|
|
|
|
|
|
dpy = get_display_or_skip(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!epoxy_has_glx_extension(dpy, 0, "GLX_ARB_create_context_profile")) |
|
|
|
|
|
|
|
errx(77, "Test requires GLX_ARB_create_context_profile"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
visinfo = get_glx_visual(dpy); |
|
|
|
|
|
|
|
win = get_glx_window(dpy, visinfo, false); |
|
|
|
|
|
|
|
config = get_fbconfig_for_visinfo(dpy, visinfo); |
|
|
|
|
|
|
|
ctx = glXCreateContextAttribsARB(dpy, config, NULL, True, attribs); |
|
|
|
if (ctx == None) |
|
|
|
if (ctx == None) |
|
|
|
errx(77, "glXCreateContext failed"); |
|
|
|
errx(77, "glXCreateContext failed"); |
|
|
|
|
|
|
|
|
|
|
|