This removes the fallback node from GskGLShaderNode and adds a new function gsk_gl_shader_try_compile_for() which tries to compile a shader against a renderer. Then you can use the return value of this both as a way to implement the fallback, and as a way to get at the error report in a saner way.
15 lines
391 B
C
15 lines
391 B
C
#ifndef __GSK_GL_RENDERER_PRIVATE_H__
|
|
#define __GSK_GL_RENDERER_PRIVATE_H__
|
|
|
|
#include "gskglrenderer.h"
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
gboolean gsk_gl_render_try_compile_gl_shader (GskGLRenderer *self,
|
|
GskGLShader *shader,
|
|
GError **error);
|
|
|
|
G_END_DECLS
|
|
|
|
#endif /* __GSK_GL_RENDERER_PRIVATE_H__ */
|