Skip to content

Comments

Remove the link-time requirement on libX11 and libGL.#1658

Merged
AWoloszyn merged 2 commits intogoogle:masterfrom
AWoloszyn:remove-X11
Feb 28, 2018
Merged

Remove the link-time requirement on libX11 and libGL.#1658
AWoloszyn merged 2 commits intogoogle:masterfrom
AWoloszyn:remove-X11

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.
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