From 618e05bcaae8e659662f3bb11004079d7b62160f Mon Sep 17 00:00:00 2001 From: Roz K Date: Mon, 26 Dec 2022 14:04:39 +0100 Subject: [PATCH] Dump extensions (commented out). --- cpp/display/display_glx.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/cpp/display/display_glx.cpp b/cpp/display/display_glx.cpp index 05e2563..8f2dae1 100644 --- a/cpp/display/display_glx.cpp +++ b/cpp/display/display_glx.cpp @@ -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(glGetString(GL_EXTENSIONS)); + // printf("[GL] %s\n", gl_exts); if (rk_extension_supported(gl_exts, "GL_EXT_base_instance")) { rk_DrawElementsInstancedBaseInstance = reinterpret_cast(