gsk: Stop supporting gl shaders

The GL shader code uses the GL renderer for compilation, and that
renderer is going away.
This commit is contained in:
Matthias Clasen 2024-09-30 19:14:26 -04:00
parent 1624455a32
commit 9b2b5ebb65

View File

@ -148,8 +148,6 @@
#include "gskglshaderprivate.h"
#include "gskdebugprivate.h"
#include "gl/gskglrendererprivate.h"
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
static GskGLUniformType
@ -562,9 +560,6 @@ gsk_gl_shader_compile (GskGLShader *shader,
{
g_return_val_if_fail (GSK_IS_GL_SHADER (shader), FALSE);
if (GSK_IS_GL_RENDERER (renderer))
return gsk_gl_renderer_try_compile_gl_shader (GSK_GL_RENDERER (renderer), shader, error);
g_set_error (error, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED,
"The renderer does not support gl shaders");
return FALSE;