Commit 6131427d authored by Luke Campagnola's avatar Luke Campagnola
Browse files

added error message when GL shaders are not available

parent 46901ae8
import OpenGL
from OpenGL.GL import *
from OpenGL.GL import shaders
import re
......@@ -218,6 +219,8 @@ class Shader(object):
if self.compiled is None:
self.compiled = shaders.compileShader(self.code, self.shaderType)
except OpenGL.NullFunctionError:
raise Exception("This OpenGL implementation does not support shader programs; many features on pyqtgraph will not work.")
except RuntimeError as exc:
## Format compile errors a bit more nicely
if len(exc.args) == 3:
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