Merge https://github.com/nigels-com/glew.git into master HEAD at Tue Dec 29 11:02:17 GMT 2020

This commit is contained in:
Gyusun 2020-12-29 11:02:17 +00:00
commit 04007493ce
4 changed files with 16 additions and 3 deletions

12
.lgtm.yml Normal file
View File

@ -0,0 +1,12 @@
extraction:
cpp:
prepare:
packages:
- "build-essential"
- "libxmu-dev"
- "libxi-dev"
- "libgl-dev"
index:
build_command:
- "cd auto; make all -j8; cd .."
- "make all -j8"

View File

@ -28,7 +28,7 @@
#if defined(GLEW_EGL) #if defined(GLEW_EGL)
#elif defined(GLEW_REGAL) #elif defined(GLEW_REGAL)
/* In GLEW_REGAL mode we call direcly into the linked /* In GLEW_REGAL mode we call directly into the linked
libRegal.so glGetProcAddressREGAL for looking up libRegal.so glGetProcAddressREGAL for looking up
the GL function pointers. */ the GL function pointers. */

View File

@ -2,7 +2,7 @@
#define __glew_h__ #define __glew_h__
#define __GLEW_H__ #define __GLEW_H__
#if defined(__gl_h_) || defined(__GL_H__) || defined(_GL_H) || defined(__X_GL_H) #if defined(__gl_h_) || defined(__GL_H__) || defined(_GL_H) || defined(__gl_gl_h_) || defined(__X_GL_H)
#error gl.h included before glew.h #error gl.h included before glew.h
#endif #endif
#if defined(__gl2_h_) #if defined(__gl2_h_)
@ -25,6 +25,7 @@
#define __gl2_h_ #define __gl2_h_
#define __GL_H__ #define __GL_H__
#define _GL_H #define _GL_H
#define __gl_gl_h_
#define __gltypes_h_ #define __gltypes_h_
#define __REGAL_H__ #define __REGAL_H__
#define __X_GL_H #define __X_GL_H

View File

@ -25,7 +25,7 @@ GLenum eglewInit (EGLDisplay display)
if (!initialize || !queryString) if (!initialize || !queryString)
return 1; return 1;
/* query EGK version */ /* query EGL version */
if (initialize(display, &major, &minor) != EGL_TRUE) if (initialize(display, &major, &minor) != EGL_TRUE)
return 1; return 1;