Search
lxdream.org :: lxdream/src/pvr2/glutil.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/pvr2/glutil.c
changeset 1140:7dc1c71ece76
prev1134:f502f3d32f90
next1150:1038800cecd8
author nkeynes
date Tue Oct 26 08:39:02 2010 +1000 (12 years ago)
permissions -rw-r--r--
last change Implement fragment shader to support palette textures 'directly', and
therefore avoid having to reload all palette textures whenever the palette
changes.
file annotate diff log raw
1.1 --- a/src/pvr2/glutil.c Fri Oct 22 20:55:32 2010 +1000
1.2 +++ b/src/pvr2/glutil.c Tue Oct 26 08:39:02 2010 +1000
1.3 @@ -41,6 +41,18 @@
1.4 return isGLExtensionSupported("GL_ARB_texture_mirrored_repeat");
1.5 }
1.6
1.7 +/**
1.8 + * Check if there's at least 2 texture units
1.9 + */
1.10 +gboolean isGLMultitextureSupported()
1.11 +{
1.12 + if( !isGLExtensionSupported("GL_ARB_multitexture") )
1.13 + return FALSE;
1.14 + int units = 0;
1.15 + glGetIntegerv(GL_MAX_TEXTURE_UNITS_ARB, &units);
1.16 + return units >= 2;
1.17 +}
1.18 +
1.19 gboolean isGLVertexRangeSupported()
1.20 {
1.21 return isGLExtensionSupported("GL_APPLE_vertex_array_range") ||
.