gdkgl: Rename function

This returns the name of the shader type.
This commit is contained in:
Timm Bäder 2020-10-01 06:24:20 +02:00 committed by Matthias Clasen
parent 7222a0901d
commit 904772c719

View File

@ -27,7 +27,7 @@
#include <string.h>
static const char *
get_vertex_type_name (int type)
get_shader_type_name (int type)
{
switch (type)
{
@ -64,7 +64,7 @@ create_shader (int type,
buffer = g_malloc (log_len + 1);
glGetShaderInfoLog (shader, log_len, NULL, buffer);
g_warning ("Compile failure in %s shader:\n%s", get_vertex_type_name (type), buffer);
g_warning ("Compile failure in %s shader:\n%s", get_shader_type_name (type), buffer);
g_free (buffer);
glDeleteShader (shader);