Bug 397977

Summary: Ocio doesn't work with Angle Enabled
Product: [Applications] krita Reporter: Halla Rempt <halla>
Component: OpenGL CanvasAssignee: amyspark <amy>
Status: RESOLVED FIXED    
Severity: normal CC: griffinvalley
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:

Description Halla Rempt 2018-08-28 09:30:48 UTC
If Angle is enabled, the versionFunctions api is not available:

7636] versionFunctions: Not supported on OpenGL ES

This means the display filter is initialized with an empty functions object:

[7636] Failed to get valid OpenGL functions for OcioDisplayFilter!

Using QOpenGLFunctions doesn't work because GLTexImage3D isn't available in that class. Using QOpenGLExtraFunctions doesn't work: compiling the shaders fails.
Comment 1 Halla Rempt 2018-08-28 09:31:11 UTC
We should either make ocio work with Angle, or we should disable the lut docker is angle is enabled.
Comment 2 wolthera 2021-09-26 17:24:05 UTC
Assigning Amy, because I suspect their recent efforts may be actually fixing this in 5.1!
Comment 3 amyspark 2021-09-27 20:34:14 UTC
Actually, glTexImage3D is available on ES3 (https://doc.qt.io/qt-5/qopenglextrafunctions.html#glTexImage3D). However, in f7d60afa6d9225c5c3f905185cc7b7c8cb0f7770 the fallback that would've taken care of it (in ES2 and lower) was removed.