mirror of
https://github.com/brl/mutter.git
synced 2025-06-13 16:59:30 +00:00
* clutter/clutter-shader.c (bind_glsl_shader): Fix a cut-and-paste
error which broke vertex shaders
This commit is contained in:
@ -414,14 +414,14 @@ bind_glsl_shader (ClutterShader *self,
|
||||
cogl_shader_source (priv->vertex_shader, priv->vertex_source);
|
||||
cogl_shader_compile (priv->vertex_shader);
|
||||
|
||||
cogl_shader_get_parameteriv (priv->fragment_shader,
|
||||
cogl_shader_get_parameteriv (priv->vertex_shader,
|
||||
CGL_OBJECT_COMPILE_STATUS,
|
||||
&compiled);
|
||||
if (compiled != CGL_TRUE)
|
||||
{
|
||||
gchar error_buf[512];
|
||||
|
||||
cogl_shader_get_info_log (priv->fragment_shader, 512, error_buf);
|
||||
cogl_shader_get_info_log (priv->vertex_shader, 512, error_buf);
|
||||
|
||||
g_set_error (error, CLUTTER_SHADER_ERROR,
|
||||
CLUTTER_SHADER_ERROR_COMPILE,
|
||||
|
Reference in New Issue
Block a user