-
Notifications
You must be signed in to change notification settings - Fork 326
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove the link-time requirement on libX11 and libGL. #1658
Conversation
This is only on Linux. Now gapid can be built/run without libX11 being present on the trace/replay device if it is not required.
core/os/device/deviceinfo/cc/gl.cpp
Outdated
@@ -42,23 +45,18 @@ void glDriver(device::OpenGLDriver* driver) { | |||
auto glGetString = reinterpret_cast<PFNGLGETSTRING>(core::GetGlesProcAddress("glGetString", true)); | |||
auto glGetStringi = reinterpret_cast<PFNGLGETSTRINGI>(core::GetGlesProcAddress("glGetStringi", true)); | |||
|
|||
GAPID_ASSERT(glGetError != nullptr); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please can we keep the asserts?
} | ||
|
||
core::DlLoader libX("libX11.so"); | ||
pfn_XFree free = (pfn_XFree)libX.lookup("XFree"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please can we be consistent with the function variable names? I don't care if you want to rename fn_glXDestroyPbuffer
and fn_glXDestroyContext
, but they should probably match style.
} | ||
|
||
if (gContext.mDisplay == nullptr) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this?
Taking the changes in google#1658 further still.
Taking the changes in google#1658 further still.
Taking the changes in google#1658 further still.
Taking the changes in #1658 further still.
This is only on Linux. Now gapid can be built/run without
libX11 being present on the trace/replay device if it is
not required.