Fix OpenGL detection on WA_NativeWindow widgets.
This commit is contained in:
parent
825ef11f1a
commit
bd989cb67f
1 changed files with 3 additions and 2 deletions
|
|
@ -56,8 +56,9 @@ Capabilities CheckCapabilities(QWidget *widget) {
|
||||||
}
|
}
|
||||||
const auto context = tester.context();
|
const auto context = tester.context();
|
||||||
if (!context
|
if (!context
|
||||||
|| !context->isValid()
|
|| !context->isValid()/*
|
||||||
|| !context->makeCurrent(tester.window()->windowHandle())) {
|
// This check doesn't work for a widget with WA_NativeWindow.
|
||||||
|
|| !context->makeCurrent(tester.window()->windowHandle())*/) {
|
||||||
LOG_ONCE(("OpenGL: Could not create widget in a window."));
|
LOG_ONCE(("OpenGL: Could not create widget in a window."));
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue