[vlc-devel] [PATCH 1/5] opengl: use vbo/vao and new shaders

Rémi Denis-Courmont remi at remlab.net
Mon Apr 2 16:57:43 CEST 2012


Le lundi 2 avril 2012 17:55:32 Rémi Denis-Courmont, vous avez écrit :
> Lots of warnings at compilation

../../../modules/video_output/opengl.c: In function 'vout_display_opengl_New':
../../../modules/video_output/opengl.c:277:24: warning: assignment from 
incompatible pointer type [enabled by default]
../../../modules/video_output/opengl.c:477:13: warning: passing argument 6 of 
'vgl->VertexAttribPointer' makes pointer from integer without a cast [enabled 
by default]
../../../modules/video_output/opengl.c:477:13: note: expected 'const GLvoid *' 
but argument is of type 'unsigned int'
../../../modules/video_output/opengl.c:478:13: warning: passing argument 6 of 
'vgl->VertexAttribPointer' makes pointer from integer without a cast [enabled 
by default]
../../../modules/video_output/opengl.c:478:13: note: expected 'const GLvoid *' 
but argument is of type 'unsigned int'
../../../modules/video_output/opengl.c:195:11: warning: unused variable 
'supports_multitexture' [-Wunused-variable]
../../../modules/video_output/opengl.c:191:17: warning: unused variable 
'extensions' [-Wunused-variable]
  CC     libxcb_glx_plugin_la-opengl.lo
  CCLD   libgl_plugin.la
../../../modules/video_output/opengl.c: In function 'vout_display_opengl_New':
../../../modules/video_output/opengl.c:277:24: warning: assignment from 
incompatible pointer type [enabled by default]
../../../modules/video_output/opengl.c:477:13: warning: passing argument 6 of 
'vgl->VertexAttribPointer' makes pointer from integer without a cast [enabled 
by default]
../../../modules/video_output/opengl.c:477:13: note: expected 'const GLvoid *' 
but argument is of type 'unsigned int'
../../../modules/video_output/opengl.c:478:13: warning: passing argument 6 of 
'vgl->VertexAttribPointer' makes pointer from integer without a cast [enabled 
by default]
../../../modules/video_output/opengl.c:478:13: note: expected 'const GLvoid *' 
but argument is of type 'unsigned int'
../../../modules/video_output/opengl.c:195:11: warning: unused variable 
'supports_multitexture' [-Wunused-variable]
../../../modules/video_output/opengl.c:191:17: warning: unused variable 
'extensions' [-Wunused-variable]
  CCLD   libxcb_glx_plugin.la

> and plain segmentation fault at run-time.

0:1(10): error: GLSL 3.30 is not supported. Supported versions are: 1.00 ES, 
1.10, and 1.20

0:2(63): error: Illegal use of reserved word `output'
0:2(63): error: syntax error, unexpected ERROR_TOK, expecting ',' or ';'

Erreur de segmentation

> Using Mesa 7 like virtually all contemporary Linux distributions.

-- 
Rémi Denis-Courmont
http://www.remlab.net/
http://fi.linkedin.com/in/remidenis



More information about the vlc-devel mailing list