-
Notifications
You must be signed in to change notification settings - Fork 328
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
Various fixes for eglMakeCurrent. #1163
Conversation
It can be nullptr if this extension is used: https://www.khronos.org/registry/EGL/extensions/KHR/EGL_KHR_surfaceless_context.txt
Make the tests more correct while we’re at it.
gapii/cc/spy.cpp
Outdated
@@ -372,10 +368,6 @@ std::shared_ptr<StaticContextState> GlesSpy::GetEGLStaticContextState(CallObserv | |||
} | |||
|
|||
std::shared_ptr<DynamicContextState> GlesSpy::GetEGLDynamicContextState(CallObserver* observer, EGLDisplay display, EGLSurface draw, EGLContext context) { | |||
if (draw == 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.
Ideally add a comment saying 'draw' may be null, otherwise it will be forgotten in couple of months?
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.
Just removed the unused parameters instead.
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.
Humm... except they were used. Bugger.
One for tomorrow (today), I think.
from GetEGLStaticContextState. It’s not used.
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.
LGTM
gapir/cc/windows/gles_renderer.cpp
Outdated
if (mPBuf == nullptr) { | ||
GAPID_FATAL("wglCreatePbufferARB failed. Error: 0x%x", GetLastError()); | ||
GAPID_FATAL("wglCreatePbufferARB(%p, %d, %d, %d, %p) failed. Error: 0x%x", | ||
mHDC, format, safe_width, safe_height, create_attribs, GetLastError()); |
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.
s/mHDC/wgl.mHDC/ ?
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.
Good spot. Done
Visualize GPU frequencies from different counters with a shared maximum range value. Add hs_err_pid* log java runtime files to the ignore list;
No description provided.