Make pointer to glGetString function const (#708)
This commit is contained in:
@@ -175,7 +175,7 @@ extern void (* const glGetShaderiv)(GLuint, GLenum, GLint *);
|
||||
/// Pointer to glGetShaderSource OpenGL function.
|
||||
extern void (* const glGetShaderSource)(GLuint, GLsizei, GLsizei *, GLchar *);
|
||||
/// Pointer to glGetString OpenGL function.
|
||||
extern const GLubyte *(*glGetString)(GLenum);
|
||||
extern const GLubyte *(* const glGetString)(GLenum);
|
||||
/// Pointer to glGetTexParameterfv OpenGL function.
|
||||
extern void (* const glGetTexParameterfv)(GLenum, GLenum, GLfloat *);
|
||||
/// Pointer to glGetTexParameteriv OpenGL function.
|
||||
|
||||
@@ -77,7 +77,7 @@ void (* const glGetRenderbufferParameteriv)(GLenum, GLenum, GLint *) = ::glGetRe
|
||||
void (* const glGetShaderInfoLog)(GLuint, GLsizei, GLsizei *, GLchar *) = ::glGetShaderInfoLog;
|
||||
void (* const glGetShaderiv)(GLuint, GLenum, GLint *) = ::glGetShaderiv;
|
||||
void (* const glGetShaderSource)(GLuint, GLsizei, GLsizei *, GLchar *) = ::glGetShaderSource;
|
||||
const GLubyte *(*glGetString)(GLenum) = ::glGetString;
|
||||
const GLubyte *(* const glGetString)(GLenum) = ::glGetString;
|
||||
void (* const glGetTexParameterfv)(GLenum, GLenum, GLfloat *) = ::glGetTexParameterfv;
|
||||
void (* const glGetTexParameteriv)(GLenum, GLenum, GLint *) = ::glGetTexParameteriv;
|
||||
void (* const glGetUniformfv)(GLuint, GLint, GLfloat *) = ::glGetUniformfv;
|
||||
|
||||
@@ -97,7 +97,7 @@ void (* const glGetRenderbufferParameteriv)(GLenum, GLenum, GLint *) = ::glGetRe
|
||||
void (* const glGetShaderInfoLog)(GLuint, GLsizei, GLsizei *, GLchar *) = ::glGetShaderInfoLog;
|
||||
void (* const glGetShaderiv)(GLuint, GLenum, GLint *) = ::glGetShaderiv;
|
||||
void (* const glGetShaderSource)(GLuint, GLsizei, GLsizei *, GLchar *) = ::glGetShaderSource;
|
||||
const GLubyte *(*glGetString)(GLenum) = ::glGetString;
|
||||
const GLubyte *(* const glGetString)(GLenum) = ::glGetString;
|
||||
void (* const glGetTexParameterfv)(GLenum, GLenum, GLfloat *) = ::glGetTexParameterfv;
|
||||
void (* const glGetTexParameteriv)(GLenum, GLenum, GLint *) = ::glGetTexParameteriv;
|
||||
void (* const glGetUniformfv)(GLuint, GLint, GLfloat *) = ::glGetUniformfv;
|
||||
|
||||
@@ -83,7 +83,7 @@ void (* const glGetRenderbufferParameteriv)(GLenum, GLenum, GLint *) = ::glGetRe
|
||||
void (* const glGetShaderInfoLog)(GLuint, GLsizei, GLsizei *, GLchar *) = ::glGetShaderInfoLog;
|
||||
void (* const glGetShaderiv)(GLuint, GLenum, GLint *) = ::glGetShaderiv;
|
||||
void (* const glGetShaderSource)(GLuint, GLsizei, GLsizei *, GLchar *) = ::glGetShaderSource;
|
||||
const GLubyte *(*glGetString)(GLenum) = ::glGetString;
|
||||
const GLubyte *(* const glGetString)(GLenum) = ::glGetString;
|
||||
void (* const glGetTexParameterfv)(GLenum, GLenum, GLfloat *) = ::glGetTexParameterfv;
|
||||
void (* const glGetTexParameteriv)(GLenum, GLenum, GLint *) = ::glGetTexParameteriv;
|
||||
void (* const glGetUniformfv)(GLuint, GLint, GLfloat *) = ::glGetUniformfv;
|
||||
|
||||
@@ -286,7 +286,7 @@ void (* const glGetShaderSource)(GLuint, GLsizei, GLsizei *, GLchar *) = [](auto
|
||||
return QOpenGLContext::currentContext()->functions()->glGetShaderSource(args...);
|
||||
};
|
||||
|
||||
const GLubyte *(*glGetString)(GLenum) = [](auto... args) {
|
||||
const GLubyte *(* const glGetString)(GLenum) = [](auto... args) {
|
||||
return QOpenGLContext::currentContext()->functions()->glGetString(args...);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user