mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-19 15:04:50 +02:00
...
This commit is contained in:
@@ -199,7 +199,7 @@ class ShaderProgram:
|
|||||||
gl.glCompileShader(shader_id)
|
gl.glCompileShader(shader_id)
|
||||||
if gl.glGetShaderiv(shader_id, gl.GL_COMPILE_STATUS) != gl.GL_TRUE:
|
if gl.glGetShaderiv(shader_id, gl.GL_COMPILE_STATUS) != gl.GL_TRUE:
|
||||||
info = gl.glGetShaderInfoLog(shader_id)
|
info = gl.glGetShaderInfoLog(shader_id)
|
||||||
raise ValueError('GLSL Shader compilation failed: \n%s' % info.decode('utf-8'))
|
raise ValueError('GLSL {} compilation failed: \n{}'.format(shader_type, info.decode('utf-8')))
|
||||||
return shader_id
|
return shader_id
|
||||||
except Exception:
|
except Exception:
|
||||||
gl.glDeleteShader(shader_id)
|
gl.glDeleteShader(shader_id)
|
||||||
|
|||||||
Reference in New Issue
Block a user