On Fr, 2015-05-08 at 00:28 +0200, Alexander Graf wrote: > > On 05.05.15 11:43, Gerd Hoffmann wrote: > > Signed-off-by: Gerd Hoffmann <kra...@redhat.com> > > Reviewed-by: Max Reitz <mre...@redhat.com> > > --- > > [...] > > > +void surface_gl_create_texture(ConsoleGLState *gls, > > + DisplaySurface *surface) > > +{ > > + assert(gls); > > + assert(surface_stride(surface) % surface_bytes_per_pixel(surface) == > > 0); > > + > > + switch (surface->format) { > > + case PIXMAN_BE_b8g8r8x8: > > + case PIXMAN_BE_b8g8r8a8: > > + surface->glformat = GL_BGRA_EXT; > > + surface->gltype = GL_UNSIGNED_BYTE; > > + break; > > + case PIXMAN_r5g6b5: > > + surface->glformat = GL_RGB; > > + surface->gltype = GL_UNSIGNED_SHORT_5_6_5; > > + break; > > + default: > > + g_assert_not_reached(); > > + } > > + > > + glGenTextures(1, &surface->texture); > > + glEnable(GL_TEXTURE_2D); > > + glBindTexture(GL_TEXTURE_2D, surface->texture); > > + glPixelStorei(GL_UNPACK_ROW_LENGTH_EXT, > > This doesn't compile for me on SLES11: > > ui/console-gl.c: In function ‘surface_gl_create_texture’: > ui/console-gl.c:97:19: error: ‘GL_UNPACK_ROW_LENGTH_EXT’ undeclared > (first use in this function) > ui/console-gl.c:97:19: note: each undeclared identifier is reported only > once for each function it appears in > ui/console-gl.c: In function ‘surface_gl_update_texture’: > ui/console-gl.c:117:19: error: ‘GL_UNPACK_ROW_LENGTH_EXT’ undeclared > (first use in this function) > make: *** [ui/console-gl.o] Error 1 > make: *** Waiting for unfinished jobs....
Which mesa version is this? cheers, Gerd