Fix demos project compilation on linux

This commit is contained in:
baldurk
2021-01-22 14:19:33 +00:00
parent 0ade24d38a
commit 019d75cd0d
2 changed files with 5 additions and 2 deletions
+4 -1
View File
@@ -148,7 +148,10 @@ bool OpenGLGraphicsTest::Init()
}
if(GLX_EXT_swap_control)
glXSwapIntervalEXT(vsync ? 1 : 0);
{
X11Window *x11win = (X11Window *)mainWindow;
glXSwapIntervalEXT(x11win->xlib.display, x11win->xlib.window, vsync ? 1 : 0);
}
PostInit();
+1 -1
View File
@@ -32,7 +32,7 @@ uint64_t GetMemoryUsage()
if(f == NULL)
{
RDCWARN("Couldn't open /proc/self/statm");
TEST_WARN("Couldn't open /proc/self/statm");
return 0;
}