Skip to content
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

Merged
merged 2 commits into from
Feb 28, 2018

Conversation

AWoloszyn
Copy link
Contributor

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.

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.
@@ -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);
Copy link
Contributor

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");
Copy link
Contributor

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) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this?

@AWoloszyn AWoloszyn merged commit 2dfda9e into google:master Feb 28, 2018
@AWoloszyn AWoloszyn deleted the remove-X11 branch February 28, 2018 18:58
ben-clayton added a commit to ben-clayton/gapid that referenced this pull request Mar 1, 2018
ben-clayton added a commit to ben-clayton/gapid that referenced this pull request Mar 1, 2018
ben-clayton added a commit to ben-clayton/gapid that referenced this pull request Mar 1, 2018
ben-clayton added a commit that referenced this pull request Mar 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants