Search
lxdream.org :: lxdream/src/pvr2/gl_sl.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/pvr2/gl_sl.c
changeset 1134:f502f3d32f90
prev1130:5f56fc931112
next1140:7dc1c71ece76
author nkeynes
date Fri Oct 22 20:55:32 2010 +1000 (12 years ago)
permissions -rw-r--r--
last change Dump more information with --gl-info, and print it a little more nicely
file annotate diff log raw
1.1 --- a/src/pvr2/gl_sl.c Fri Sep 17 20:08:50 2010 +1000
1.2 +++ b/src/pvr2/gl_sl.c Fri Oct 22 20:55:32 2010 +1000
1.3 @@ -51,6 +51,11 @@
1.4 isGLExtensionSupported("GL_ARB_shading_language_100");
1.5 }
1.6
1.7 +const char *glsl_get_version()
1.8 +{
1.9 + return glGetString(GL_SHADING_LANGUAGE_VERSION_ARB);
1.10 +}
1.11 +
1.12 void glsl_print_error( char *msg, GLhandleARB obj )
1.13 {
1.14 char buf[MAX_ERROR_BUF];
1.15 @@ -156,6 +161,11 @@
1.16 isGLExtensionSupported("GL_ARB_shading_language_100");
1.17 }
1.18
1.19 +const char *glsl_get_version()
1.20 +{
1.21 + return glGetString(GL_SHADING_LANGUAGE_VERSION);
1.22 +}
1.23 +
1.24 gboolean glsl_check_shader_error( char *msg, GLuint shader )
1.25 {
1.26 GLint value;
1.27 @@ -256,6 +266,11 @@
1.28 return FALSE;
1.29 }
1.30
1.31 +int glsl_get_version()
1.32 +{
1.33 + return 0;
1.34 +}
1.35 +
1.36 gl_shader_t glsl_create_vertex_shader( const char *source )
1.37 {
1.38 return 0;
.