mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 01:20:42 +00:00
Fix demos project compilation on linux
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user