forked from AuroraMiddleware/gtk
gdkgl: Rename function
This returns the name of the shader type.
This commit is contained in:
parent
7222a0901d
commit
904772c719
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user