Merge lp:~compiz-team/compiz/compiz.fix_1095915 into lp:compiz/0.9.9
Proposed by
Sam Spilsbury
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Daniel van Vugt | ||||
Approved revision: | 3537 | ||||
Merged at revision: | 3540 | ||||
Proposed branch: | lp:~compiz-team/compiz/compiz.fix_1095915 | ||||
Merge into: | lp:compiz/0.9.9 | ||||
Diff against target: |
12 lines (+1/-1) 1 file modified
plugins/opengl/src/screen.cpp (+1/-1) |
||||
To merge this branch: | bzr merge lp:~compiz-team/compiz/compiz.fix_1095915 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
PS Jenkins bot (community) | continuous-integration | Approve | |
Daniel van Vugt | Approve | ||
Review via email: mp+141851@code.launchpad.net |
Commit message
Fix definition of glShaderSource function pointer.
Its GLvoid glShaderSource (GLuint, GLsizei, const GLchar * const *, const GLint *); in the header file, not GLvoid glShaderSource (GLuint, GLsizei, const GLchar **, const GLint *); like the specification.
Use a function pointer cast to work around it.
(LP: #1095915)
Description of the change
Fix definition of glShaderSource function pointer.
Its GLvoid glShaderSource (GLuint, GLsizei, const GLchar * const *, const GLint *); in the header file, not GLvoid glShaderSource (GLuint, GLsizei, const GLchar **, const GLint *); like the specification.
To post a comment you must log in.
BUILD_GLES:
/home/dan/ bzr/compiz/ tmp.915/ plugins/ opengl/ src/screen. cpp: In member function ‘bool GLScreen: :glInitContext( XVisualInfo* )’: bzr/compiz/ tmp.915/ plugins/ opengl/ src/screen. cpp:547: 24: error: invalid conversion from ‘void (*)(GLuint, GLsizei, const GLchar**, const GLint*) {aka void (*)(unsigned int, int, const char**, const int*)}’ to ‘GL::GLShaderSo urceProc {aka void (*)(unsigned int, int, const char* const*, const int*)}’ [-fpermissive]
/home/dan/