mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 15:30:14 +01:00
changed coding style. added a NULL pointer check.
This commit is contained in:
parent
7da875d55f
commit
aa7a27b38e
1 changed files with 31 additions and 27 deletions
|
|
@ -19,9 +19,9 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* DOS/DJGPP glut driver v1.4 for Mesa
|
* DOS/DJGPP glut driver v1.5 for Mesa
|
||||||
*
|
*
|
||||||
* Copyright (C) 2002 - Borca Daniel
|
* Copyright (C) 2002 - Daniel Borca
|
||||||
* Email : dborca@yahoo.com
|
* Email : dborca@yahoo.com
|
||||||
* Web : http://www.geocities.com/dborca
|
* Web : http://www.geocities.com/dborca
|
||||||
*/
|
*/
|
||||||
|
|
@ -34,7 +34,8 @@
|
||||||
#include "GL/dmesa.h"
|
#include "GL/dmesa.h"
|
||||||
|
|
||||||
|
|
||||||
int APIENTRY glutExtensionSupported (const char *extension)
|
int APIENTRY
|
||||||
|
glutExtensionSupported (const char *extension)
|
||||||
{
|
{
|
||||||
static const GLubyte *extensions = NULL;
|
static const GLubyte *extensions = NULL;
|
||||||
const GLubyte *last, *where;
|
const GLubyte *last, *where;
|
||||||
|
|
@ -48,6 +49,9 @@ int APIENTRY glutExtensionSupported (const char *extension)
|
||||||
if (!extensions) {
|
if (!extensions) {
|
||||||
extensions = glGetString(GL_EXTENSIONS);
|
extensions = glGetString(GL_EXTENSIONS);
|
||||||
}
|
}
|
||||||
|
if (!extensions) {
|
||||||
|
return GL_FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
/* Take care of sub-strings etc. */
|
/* Take care of sub-strings etc. */
|
||||||
for (last = extensions;;) {
|
for (last = extensions;;) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue