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 1248:0ea1904e2b14
prev1240:190df8a791ca
next1256:a9d29fe74bf3
author nkeynes
date Sat Mar 03 15:56:29 2012 +1000 (8 years ago)
permissions -rw-r--r--
last change Assume that shaders are available on GLES2 (true by definition)
file annotate diff log raw
1.1 --- a/src/pvr2/gl_sl.c Tue Feb 28 17:25:26 2012 +1000
1.2 +++ b/src/pvr2/gl_sl.c Sat Mar 03 15:56:29 2012 +1000
1.3 @@ -50,9 +50,9 @@
1.4
1.5 gboolean glsl_is_supported()
1.6 {
1.7 - return isGLExtensionSupported("GL_ARB_fragment_shader") &&
1.8 + return isOpenGLES2() || (isGLExtensionSupported("GL_ARB_fragment_shader") &&
1.9 isGLExtensionSupported("GL_ARB_vertex_shader") &&
1.10 - isGLExtensionSupported("GL_ARB_shading_language_100");
1.11 + isGLExtensionSupported("GL_ARB_shading_language_100"));
1.12 }
1.13
1.14 const char *glsl_get_version()
1.15 @@ -182,9 +182,9 @@
1.16
1.17 gboolean glsl_is_supported()
1.18 {
1.19 - return isGLExtensionSupported("GL_ARB_fragment_shader") &&
1.20 + return isOpenGLES2() || (isGLExtensionSupported("GL_ARB_fragment_shader") &&
1.21 isGLExtensionSupported("GL_ARB_vertex_shader") &&
1.22 - isGLExtensionSupported("GL_ARB_shading_language_100");
1.23 + isGLExtensionSupported("GL_ARB_shading_language_100"));
1.24 }
1.25
1.26 const char *glsl_get_version()
.