fixing error passing

dev
keldu.magnus 2021-07-02 23:28:59 +02:00
parent 370a4dfc85
commit 4ac1ad4740
1 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ XcbGlWindow::XcbGlWindow(Own<XcbWindow> &&win, XcbGlContext &ctx,
XcbGlWindow::~XcbGlWindow() {
assert(context.device);
if (context.device) {
glXDestroyWindow(context.device->display, glx_window);
::glXDestroyWindow(context.device->display, glx_window);
}
}
@ -47,7 +47,7 @@ void XcbGlWindow::swap() {
assert(context.device);
assert(context.device->display);
if (context.device && context.device->display) {
glXSwapBuffers(context.device->display, glx_window);
::glXSwapBuffers(context.device->display, glx_window);
}
}