Search
lxdream.org :: lxdream/src/pvr2/glutil.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/pvr2/glutil.c
changeset 645:a7392098299c
prev636:2ccf94f966fc
next1066:ddffe9d2b332
author nkeynes
date Thu Mar 06 08:22:00 2008 +0000 (12 years ago)
branchlxdream-render
permissions -rw-r--r--
last change More refactor work in progress - nearly done now
file annotate diff log raw
1.1 --- a/src/pvr2/glutil.c Thu Feb 14 14:06:41 2008 +0000
1.2 +++ b/src/pvr2/glutil.c Thu Mar 06 08:22:00 2008 +0000
1.3 @@ -15,7 +15,7 @@
1.4 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1.5 * GNU General Public License for more details.
1.6 */
1.7 -
1.8 +#include <string.h>
1.9 #include "pvr2/glutil.h"
1.10
1.11 /**
1.12 @@ -34,6 +34,11 @@
1.13 if (where || *extension == '\0')
1.14 return 0;
1.15 extensions = glGetString(GL_EXTENSIONS);
1.16 + if( extensions == NULL ) {
1.17 + /* No GL available, so we're pretty sure the extension isn't
1.18 + * available either. */
1.19 + return FALSE;
1.20 + }
1.21 /* It takes a bit of care to be fool-proof about parsing the
1.22 OpenGL extensions string. Don't be fooled by sub-strings,
1.23 etc. */
.