Changeset View
Changeset View
Standalone View
Standalone View
plugins/dockers/lut/ocio_display_filter.cpp
Context not available. | |||||
267 | 267 | | |||
---|---|---|---|---|---|
268 | bool OcioDisplayFilter::updateShader() | 268 | bool OcioDisplayFilter::updateShader() | ||
269 | { | 269 | { | ||
270 | if (KisOpenGL::hasOpenGL3()) { | 270 | if (KisOpenGL::hasOpenGLES()) { | ||
271 | QOpenGLExtraFunctions *f = QOpenGLContext::currentContext()->extraFunctions(); | ||||
272 | if (f) { | ||||
273 | return updateShaderImpl(f); | ||||
274 | } | ||||
275 | } else if (KisOpenGL::hasOpenGL3()) { | ||||
271 | QOpenGLFunctions_3_2_Core *f = QOpenGLContext::currentContext()->versionFunctions<QOpenGLFunctions_3_2_Core>(); | 276 | QOpenGLFunctions_3_2_Core *f = QOpenGLContext::currentContext()->versionFunctions<QOpenGLFunctions_3_2_Core>(); | ||
272 | if (f) { | 277 | if (f) { | ||
273 | return updateShaderImpl(f); | 278 | return updateShaderImpl(f); | ||
Context not available. |