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

fix(luxcoreui): crash issue in RenderEngine editor with LUXRAYS_DISABLE_OPENCL=1 #406

Merged
merged 2 commits into from
Jul 8, 2020
Merged

fix(luxcoreui): crash issue in RenderEngine editor with LUXRAYS_DISABLE_OPENCL=1 #406

merged 2 commits into from
Jul 8, 2020

Conversation

sjlex
Copy link
Contributor

@sjlex sjlex commented Jul 7, 2020

Fixed crash when opening RenderEngine editor with LUXRAYS_DISABLE_OPENCL=1 and fixed incorrect typeIndex in combo list.

@Dade916
Copy link
Member

Dade916 commented Jul 8, 2020

Thanks, as far as I understand from your patch, the crash was due to having LuxCoreApp::isOpenCLAvailable and LuxCoreApp::isCUDAAvailable initialized after the call of RenderEngineWindow, correct ?

I fixed the problem by simply initialing them before: aa3bd13

Was there anything else ?

@sjlex
Copy link
Contributor Author

sjlex commented Jul 8, 2020

Yes, right.
I moved back typeTable initialization in constructor.
Thanks.

@Dade916 Dade916 merged commit bd1937f into LuxCoreRender:master Jul 8, 2020
@sjlex sjlex deleted the fix-typeIndex-in-luxcoreui branch July 8, 2020 16:44
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