Dump extensions (commented out).
This commit is contained in:
parent
cdfce62c90
commit
618e05bcaa
@ -110,6 +110,7 @@ rk_display_t rk_create_display(
|
||||
return nullptr;
|
||||
}
|
||||
char const * const glx_exts = glXQueryExtensionsString(display->display, DefaultScreen(display->display));
|
||||
// rk_glx_printf(glx_exts);
|
||||
|
||||
int fbcount;
|
||||
GLXFBConfig * const fbc = glXChooseFBConfig(
|
||||
@ -151,12 +152,9 @@ rk_display_t rk_create_display(
|
||||
display->display, RootWindow(display->display, vi->screen), vi->visual, AllocNone);
|
||||
XSetWindowAttributes swa;
|
||||
swa.colormap = display->colormap;
|
||||
// swa.background_pixmap = None;
|
||||
// swa.border_pixel = 0;
|
||||
swa.event_mask = RK_EVENTS_MASK;
|
||||
display->window = XCreateWindow(display->display, RootWindow(display->display, vi->screen),
|
||||
0, 0, width, height, 0, vi->depth, InputOutput, vi->visual,
|
||||
/*CWBorderPixel |*/ CWColormap | CWEventMask, &swa);
|
||||
0, 0, width, height, 0, vi->depth, InputOutput, vi->visual, CWColormap | CWEventMask, &swa);
|
||||
XFree(vi);
|
||||
if (!display->window) {
|
||||
rk_glx_printf("Failed to create window.");
|
||||
@ -193,6 +191,7 @@ rk_display_t rk_create_display(
|
||||
glXMakeCurrent(display->display, display->window, display->context);
|
||||
|
||||
char const * const gl_exts = reinterpret_cast<char const *>(glGetString(GL_EXTENSIONS));
|
||||
// printf("[GL] %s\n", gl_exts);
|
||||
if (rk_extension_supported(gl_exts, "GL_EXT_base_instance")) {
|
||||
rk_DrawElementsInstancedBaseInstance =
|
||||
reinterpret_cast<rk_DrawElementsInstancedBaseInstanceFunc>(
|
||||
|
Loading…
Reference in New Issue
Block a user