Commit 8c257264 authored by Andy Nichols's avatar Andy Nichols
Browse files

QQuickCustomParticle: Check for current OpenGL Context before use


QQuickCustomParticle::buildCustomNodes() assumes there is a valid OpenGL
context, but when there is not it will simply crash.  Instead we check
for a valid current OpenGL context first, and return 0 if it is not
availalbe.  This needed for the Qt Quick 2d Renderer.

Change-Id: I6bfcfc8fa9581bfd27015f719fc527c36492eade
Reviewed-by: default avataraavit <eirik.aavitsland@digia.com>
Reviewed-by: default avatarGunnar Sletta <gunnar@sletta.org>
parent 9ab2cd2d
Showing with 3 additions and 0 deletions
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment